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

TOMOYO Linux Cross Reference
Linux/include/asm-h8300/gpio.h

Version: ~ [ linux-5.10-rc1 ] ~ [ linux-5.9.1 ] ~ [ linux-5.8.16 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.72 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.152 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.202 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.240 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.240 ] ~ [ 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.85 ] ~ [ 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-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 _H8300_GPIO_H
  2 #define _H8300_GPIO_H
  3 
  4 #define H8300_GPIO_P1 0
  5 #define H8300_GPIO_P2 1
  6 #define H8300_GPIO_P3 2
  7 #define H8300_GPIO_P4 3
  8 #define H8300_GPIO_P5 4
  9 #define H8300_GPIO_P6 5
 10 #define H8300_GPIO_P7 6
 11 #define H8300_GPIO_P8 7
 12 #define H8300_GPIO_P9 8
 13 #define H8300_GPIO_PA 9
 14 #define H8300_GPIO_PB 10
 15 #define H8300_GPIO_PC 11
 16 #define H8300_GPIO_PD 12
 17 #define H8300_GPIO_PE 13
 18 #define H8300_GPIO_PF 14
 19 #define H8300_GPIO_PG 15
 20 #define H8300_GPIO_PH 16
 21 
 22 #define H8300_GPIO_B7 0x80
 23 #define H8300_GPIO_B6 0x40
 24 #define H8300_GPIO_B5 0x20
 25 #define H8300_GPIO_B4 0x10
 26 #define H8300_GPIO_B3 0x08
 27 #define H8300_GPIO_B2 0x04
 28 #define H8300_GPIO_B1 0x02
 29 #define H8300_GPIO_B0 0x01
 30 
 31 #define H8300_GPIO_INPUT 0
 32 #define H8300_GPIO_OUTPUT 1
 33 
 34 #define H8300_GPIO_RESERVE(port, bits) \
 35         h8300_reserved_gpio(port, bits)
 36 
 37 #define H8300_GPIO_FREE(port, bits) \
 38         h8300_free_gpio(port, bits)
 39 
 40 #define H8300_GPIO_DDR(port, bit, dir) \
 41         h8300_set_gpio_dir(((port) << 8) | (bit), dir)
 42 
 43 #define H8300_GPIO_GETDIR(port, bit) \
 44         h8300_get_gpio_dir(((port) << 8) | (bit))
 45 
 46 extern int h8300_reserved_gpio(int port, int bits);
 47 extern int h8300_free_gpio(int port, int bits);
 48 extern int h8300_set_gpio_dir(int port_bit, int dir);
 49 extern int h8300_get_gpio_dir(int port_bit);
 50 extern int h8300_init_gpio(void);
 51 
 52 #endif
 53 

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