~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-lh7a40x/include/mach/ssp.h

Version: ~ [ linux-5.2-rc6 ] ~ [ linux-5.1.15 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.56 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.130 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.183 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.183 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.69 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* ssp.h
  2 
  3    written by Marc Singer
  4    6 Dec 2004
  5 
  6    Copyright (C) 2004 Marc Singer
  7 
  8    -----------
  9    DESCRIPTION
 10    -----------
 11 
 12    This SSP header is available throughout the kernel, for this
 13    machine/architecture, because drivers that use it may be dispersed.
 14 
 15    This file was cloned from the 7952x implementation.  It would be
 16    better to share them, but we're taking an easier approach for the
 17    time being.
 18 
 19 */
 20 
 21 #if !defined (__SSP_H__)
 22 #    define   __SSP_H__
 23 
 24 /* ----- Includes */
 25 
 26 /* ----- Types */
 27 
 28 struct ssp_driver {
 29         int  (*init)            (void);
 30         void (*exit)            (void);
 31         void (*acquire)         (void);
 32         void (*release)         (void);
 33         int  (*configure)       (int device, int mode, int speed,
 34                                  int frame_size_write, int frame_size_read);
 35         void (*chip_select)     (int enable);
 36         void (*set_callbacks)   (void* handle,
 37                                  irqreturn_t (*callback_tx)(void*),
 38                                  irqreturn_t (*callback_rx)(void*));
 39         void (*enable)          (void);
 40         void (*disable)         (void);
 41 //      int  (*save_state)      (void*);
 42 //      void (*restore_state)   (void*);
 43         int  (*read)            (void);
 44         int  (*write)           (u16 data);
 45         int  (*write_read)      (u16 data);
 46         void (*flush)           (void);
 47         void (*write_async)     (void* pv, size_t cb);
 48         size_t (*write_pos)     (void);
 49 };
 50 
 51         /* These modes are only available on the LH79524 */
 52 #define SSP_MODE_SPI            (1)
 53 #define SSP_MODE_SSI            (2)
 54 #define SSP_MODE_MICROWIRE      (3)
 55 #define SSP_MODE_I2S            (4)
 56 
 57         /* CPLD SPI devices */
 58 #define DEVICE_EEPROM   0       /* Configuration eeprom */
 59 #define DEVICE_MAC      1       /* MAC eeprom (LPD79524) */
 60 #define DEVICE_CODEC    2       /* Audio codec */
 61 #define DEVICE_TOUCH    3       /* Touch screen (LPD79520) */
 62 
 63 /* ----- Globals */
 64 
 65 /* ----- Prototypes */
 66 
 67 //extern struct ssp_driver lh79520_i2s_driver;
 68 extern struct ssp_driver lh7a400_cpld_ssp_driver;
 69 
 70 #endif  /* __SSP_H__ */
 71 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp