drivers/pinctrl/pinctrl-mcp23s08.h
Source file repositories/reference/linux-study-clean/drivers/pinctrl/pinctrl-mcp23s08.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/pinctrl-mcp23s08.h- Extension
.h- Size
- 1245 bytes
- Lines
- 61
- Domain
- Driver Families
- Bucket
- drivers/pinctrl
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/gpio/driver.hlinux/irq.hlinux/mutex.hlinux/pinctrl/pinctrl.hlinux/types.h
Detected Declarations
struct devicestruct regmapstruct pinctrl_devstruct mcp23s08_infostruct mcp23s08
Annotated Snippet
struct mcp23s08_info {
const struct regmap_config *regmap;
const char *label;
unsigned int type;
u16 ngpio;
bool reg_shift;
};
struct mcp23s08 {
u8 addr;
bool irq_active_high;
bool reg_shift;
u16 irq_rise;
u16 irq_fall;
int irq;
bool irq_controller;
int cached_gpio;
/* lock protects regmap access with bypass/cache flags */
struct mutex lock;
struct gpio_chip chip;
struct regmap *regmap;
struct device *dev;
struct pinctrl_dev *pctldev;
struct pinctrl_desc pinctrl_desc;
struct gpio_desc *reset_gpio;
};
extern const struct regmap_config mcp23x08_regmap;
extern const struct regmap_config mcp23x17_regmap;
int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev,
unsigned int addr, unsigned int type, unsigned int base);
Annotation
- Immediate include surface: `linux/gpio/driver.h`, `linux/irq.h`, `linux/mutex.h`, `linux/pinctrl/pinctrl.h`, `linux/types.h`.
- Detected declarations: `struct device`, `struct regmap`, `struct pinctrl_dev`, `struct mcp23s08_info`, `struct mcp23s08`.
- Atlas domain: Driver Families / drivers/pinctrl.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.