Lines Matching +full:port +full:- +full:number
1 /* SPDX-License-Identifier: GPL-2.0+ */
10 * The I/O base address of SIO1007 at power-up is determined by the SYSOPT0
55 /* Number of serial ports supported */
58 /* Number of gpio pins supported */
64 * Configure the I/O port address of the specified serial device and
67 * @port: SIO1007 I/O port address
68 * @num: serial device number (0 or 1)
69 * @iobase: processor I/O port address to assign to this serial device
70 * @irq: processor IRQ number to assign to this serial device
72 void sio1007_enable_serial(int port, int num, int iobase, int irq);
75 * Configure the I/O port address of the runtime register block and
78 * @port: SIO1007 I/O port address
79 * @iobase: processor I/O port address to assign to the runtime registers
81 void sio1007_enable_runtime(int port, int iobase);
86 * @port: SIO1007 I/O port address
87 * @gpio: GPIO number (0-7 for GP10-GP17, 8-15 for GP30-GP37)
92 void sio1007_gpio_config(int port, int gpio, int dir, int pol, int type);
98 * @port: runtime register block I/O port address
99 * @gpio: GPIO number (0-7 for GP10-GP17, 8-15 for GP30-GP37)
100 * @return: 0 if low, 1 if high, -EINVAL if gpio number is invalid
102 int sio1007_gpio_get_value(int port, int gpio);
108 * @port: runtime register block I/O port address
109 * @gpio: GPIO number (0-7 for GP10-GP17, 8-15 for GP30-GP37)
112 void sio1007_gpio_set_value(int port, int gpio, int val);