NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GPIO Access

Detailed Description

Declares the APIs for Quickboot accessing GPIO.

Data Structures

struct  QbGpioIoctlRec
 Holds configurations for the GPIO pin. More...
 
struct  QbGpioDriverPrivInfo
 

Macros

#define GPIO_VAL_SET   1
 Defines GPIO value in case it is in set state. More...
 
#define GPIO_VAL_RESET   0
 Defines GPIO value in case it is in reset state. More...
 
#define GPIO_IOCTL_SET_VAL   1
 
#define GPIO_IOCTL_RESET_VAL   2
 Defines GPIO reset Ioctl operation. More...
 
#define GPIO_IOCTL_GET_INPUT_VAL   3
 Defines get GPIO i/p value Ioctl operation. More...
 
#define PIN0   0
 
#define PIN1   1
 
#define PIN2   2
 
#define PIN3   3
 
#define PIN4   4
 
#define PIN5   5
 
#define PIN6   6
 
#define PIN7   7
 
#define TEGRA_GPIO_PORT_N   0
 
#define TEGRA_GPIO_PORT_O   1
 
#define TEGRA_GPIO_PORT_Q   2
 
#define TEGRA_GPIO_PORT_T   3
 
#define TEGRA_GPIO_PORT_I   4
 
#define TEGRA_GPIO_PORT_R   5
 
#define TEGRA_GPIO_PORT_H   6
 
#define TEGRA_GPIO_PORT_L   7
 
#define TEGRA_GPIO_PORT_X   8
 
#define TEGRA_GPIO_PORT_Y   9
 
#define TEGRA_GPIO_PORT_A   10
 
#define TEGRA_GPIO_PORT_E   11
 
#define TEGRA_GPIO_PORT_F   12
 
#define TEGRA_GPIO_PORT_BB   13
 
#define TEGRA_GPIO_PORT_B   14
 
#define TEGRA_GPIO_PORT_C   15
 
#define TEGRA_GPIO_PORT_D   16
 
#define TEGRA_GPIO_PORT_P   17
 
#define TEGRA_GPIO_PORT_G   18
 
#define TEGRA_GPIO_PORT_J   19
 
#define TEGRA_GPIO_PORT_K   20
 
#define TEGRA_GPIO_PORT_CC   21
 
#define TEGRA_GPIO_PORT_M   22
 
#define TEGRA_GPIO_PORT_S   23
 
#define TEGRA_GPIO_PORT_U   24
 
#define TEGRA_GPIO_PORT_V   25
 
#define TEGRA_GPIO_PORT_W   26
 
#define TEGRA_GPIO_PORT_Z   27
 
#define TEGRA_GPIO_PORT_AA   28
 
#define TEGRA_GPIO_PORT_EE   29
 
#define TEGRA_GPIO_PORT_FF   30
 
#define TEGRA_GPIO_PORT_GG   31
 

Typedefs

typedef struct QbGpioIoctlRec QbGpioIoctl
 Holds configurations for the GPIO pin. More...
 

Functions

NvError QbGpioInit (void)
 Registers the GPIO driver to driver framework. More...
 

Macro Definition Documentation

#define GPIO_IOCTL_GET_INPUT_VAL   3

Defines get GPIO i/p value Ioctl operation.

Definition at line 64 of file gpio.h.

#define GPIO_IOCTL_RESET_VAL   2

Defines GPIO reset Ioctl operation.

Definition at line 62 of file gpio.h.

#define GPIO_IOCTL_SET_VAL   1
Note
Other GPIO settings like gpio/sfio, output enable/disable, configuring direction etc. are being take care of through MB1 cfg.Defines GPIO set Ioctl operation.

Definition at line 60 of file gpio.h.

#define GPIO_VAL_RESET   0

Defines GPIO value in case it is in reset state.

Definition at line 52 of file gpio.h.

#define GPIO_VAL_SET   1

Defines GPIO value in case it is in set state.

Definition at line 50 of file gpio.h.

#define PIN0   0

Definition at line 67 of file gpio.h.

#define PIN1   1

Definition at line 68 of file gpio.h.

#define PIN2   2

Definition at line 69 of file gpio.h.

#define PIN3   3

Definition at line 70 of file gpio.h.

#define PIN4   4

Definition at line 71 of file gpio.h.

#define PIN5   5

Definition at line 72 of file gpio.h.

#define PIN6   6

Definition at line 73 of file gpio.h.

#define PIN7   7

Definition at line 74 of file gpio.h.

#define TEGRA_GPIO_PORT_A   10

Definition at line 93 of file gpio.h.

#define TEGRA_GPIO_PORT_AA   28

Definition at line 119 of file gpio.h.

#define TEGRA_GPIO_PORT_B   14

Definition at line 99 of file gpio.h.

#define TEGRA_GPIO_PORT_BB   13

Definition at line 96 of file gpio.h.

#define TEGRA_GPIO_PORT_C   15

Definition at line 100 of file gpio.h.

#define TEGRA_GPIO_PORT_CC   21

Definition at line 110 of file gpio.h.

#define TEGRA_GPIO_PORT_D   16

Definition at line 101 of file gpio.h.

#define TEGRA_GPIO_PORT_E   11

Definition at line 94 of file gpio.h.

#define TEGRA_GPIO_PORT_EE   29

Definition at line 120 of file gpio.h.

#define TEGRA_GPIO_PORT_F   12

Definition at line 95 of file gpio.h.

#define TEGRA_GPIO_PORT_FF   30

Definition at line 121 of file gpio.h.

#define TEGRA_GPIO_PORT_G   18

Definition at line 105 of file gpio.h.

#define TEGRA_GPIO_PORT_GG   31

Definition at line 122 of file gpio.h.

#define TEGRA_GPIO_PORT_H   6

Definition at line 87 of file gpio.h.

#define TEGRA_GPIO_PORT_I   4

Definition at line 83 of file gpio.h.

#define TEGRA_GPIO_PORT_J   19

Definition at line 108 of file gpio.h.

#define TEGRA_GPIO_PORT_K   20

Definition at line 109 of file gpio.h.

#define TEGRA_GPIO_PORT_L   7

Definition at line 88 of file gpio.h.

#define TEGRA_GPIO_PORT_M   22

Definition at line 111 of file gpio.h.

#define TEGRA_GPIO_PORT_N   0

Definition at line 79 of file gpio.h.

#define TEGRA_GPIO_PORT_O   1

Definition at line 80 of file gpio.h.

#define TEGRA_GPIO_PORT_P   17

Definition at line 104 of file gpio.h.

#define TEGRA_GPIO_PORT_Q   2

Definition at line 81 of file gpio.h.

#define TEGRA_GPIO_PORT_R   5

Definition at line 84 of file gpio.h.

#define TEGRA_GPIO_PORT_S   23

Definition at line 114 of file gpio.h.

#define TEGRA_GPIO_PORT_T   3

Definition at line 82 of file gpio.h.

#define TEGRA_GPIO_PORT_U   24

Definition at line 115 of file gpio.h.

#define TEGRA_GPIO_PORT_V   25

Definition at line 116 of file gpio.h.

#define TEGRA_GPIO_PORT_W   26

Definition at line 117 of file gpio.h.

#define TEGRA_GPIO_PORT_X   8

Definition at line 89 of file gpio.h.

#define TEGRA_GPIO_PORT_Y   9

Definition at line 90 of file gpio.h.

#define TEGRA_GPIO_PORT_Z   27

Definition at line 118 of file gpio.h.

Typedef Documentation

typedef struct QbGpioIoctlRec QbGpioIoctl

Holds configurations for the GPIO pin.

Function Documentation

NvError QbGpioInit ( void  )

Registers the GPIO driver to driver framework.