include/dt-bindings/gpio/tegra256-gpio.h

Source file repositories/reference/linux-study-clean/include/dt-bindings/gpio/tegra256-gpio.h

File Facts

System
Linux kernel
Corpus path
include/dt-bindings/gpio/tegra256-gpio.h
Extension
.h
Size
788 bytes
Lines
29
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _DT_BINDINGS_GPIO_TEGRA256_GPIO_H
#define _DT_BINDINGS_GPIO_TEGRA256_GPIO_H

#include <dt-bindings/gpio/gpio.h>

/* GPIOs implemented by main GPIO controller */
#define TEGRA256_MAIN_GPIO_PORT_A 0
#define TEGRA256_MAIN_GPIO_PORT_B 1
#define TEGRA256_MAIN_GPIO_PORT_C 2
#define TEGRA256_MAIN_GPIO_PORT_D 3

#define TEGRA256_MAIN_GPIO(port, offset) \
		((TEGRA256_MAIN_GPIO_PORT_##port * 8) + (offset))

#endif

Annotation

Implementation Notes