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

TOMOYO Linux Cross Reference
Linux/include/linux/smc91x.h

Version: ~ [ linux-5.3-rc5 ] ~ [ linux-5.2.9 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.67 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.139 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.189 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.189 ] ~ [ 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.72 ] ~ [ 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.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 #ifndef __SMC91X_H__
  2 #define __SMC91X_H__
  3 
  4 /*
  5  * These bits define which access sizes a platform can support, rather
  6  * than the maximal access size.  So, if your platform can do 16-bit
  7  * and 32-bit accesses to the SMC91x device, but not 8-bit, set both
  8  * SMC91X_USE_16BIT and SMC91X_USE_32BIT.
  9  *
 10  * The SMC91x driver requires at least one of SMC91X_USE_8BIT or
 11  * SMC91X_USE_16BIT to be supported - just setting SMC91X_USE_32BIT is
 12  * an invalid configuration.
 13  */
 14 #define SMC91X_USE_8BIT (1 << 0)
 15 #define SMC91X_USE_16BIT (1 << 1)
 16 #define SMC91X_USE_32BIT (1 << 2)
 17 
 18 #define SMC91X_NOWAIT           (1 << 3)
 19 
 20 /* two bits for IO_SHIFT, let's hope later designs will keep this sane */
 21 #define SMC91X_IO_SHIFT_0       (0 << 4)
 22 #define SMC91X_IO_SHIFT_1       (1 << 4)
 23 #define SMC91X_IO_SHIFT_2       (2 << 4)
 24 #define SMC91X_IO_SHIFT_3       (3 << 4)
 25 #define SMC91X_IO_SHIFT(x)      (((x) >> 4) & 0x3)
 26 
 27 #define SMC91X_USE_DMA          (1 << 6)
 28 
 29 #define RPC_LED_100_10  (0x00)  /* LED = 100Mbps OR's with 10Mbps link detect */
 30 #define RPC_LED_RES     (0x01)  /* LED = Reserved */
 31 #define RPC_LED_10      (0x02)  /* LED = 10Mbps link detect */
 32 #define RPC_LED_FD      (0x03)  /* LED = Full Duplex Mode */
 33 #define RPC_LED_TX_RX   (0x04)  /* LED = TX or RX packet occurred */
 34 #define RPC_LED_100     (0x05)  /* LED = 100Mbps link detect */
 35 #define RPC_LED_TX      (0x06)  /* LED = TX packet occurred */
 36 #define RPC_LED_RX      (0x07)  /* LED = RX packet occurred */
 37 
 38 struct smc91x_platdata {
 39         unsigned long flags;
 40         unsigned char leda;
 41         unsigned char ledb;
 42         bool pxa_u16_align4;    /* PXA buggy u16 writes on 4*n+2 addresses */
 43 };
 44 
 45 #endif /* __SMC91X_H__ */
 46 

~ [ 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