drivers/usb/isp1760/isp1760-core.h
Source file repositories/reference/linux-study-clean/drivers/usb/isp1760/isp1760-core.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/isp1760/isp1760-core.h- Extension
.h- Size
- 2647 bytes
- Lines
- 98
- Domain
- Driver Families
- Bucket
- drivers/usb
- 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/ioport.hlinux/regmap.hisp1760-hcd.hisp1760-udc.h
Detected Declarations
struct devicestruct gpio_descstruct isp1760_devicefunction isp1760_field_readfunction isp1760_field_writefunction isp1760_field_setfunction isp1760_field_clearfunction isp1760_reg_readfunction isp1760_reg_write
Annotated Snippet
struct isp1760_device {
struct device *dev;
unsigned int devflags;
struct gpio_desc *rst_gpio;
struct isp1760_hcd hcd;
struct isp1760_udc udc;
};
int isp1760_register(struct resource *mem, int irq, unsigned long irqflags,
struct device *dev, unsigned int devflags);
void isp1760_unregister(struct device *dev);
void isp1760_set_pullup(struct isp1760_device *isp, bool enable);
static inline u32 isp1760_field_read(struct regmap_field **fields, u32 field)
{
unsigned int val;
regmap_field_read(fields[field], &val);
return val;
}
static inline void isp1760_field_write(struct regmap_field **fields, u32 field,
u32 val)
{
regmap_field_write(fields[field], val);
}
static inline void isp1760_field_set(struct regmap_field **fields, u32 field)
{
isp1760_field_write(fields, field, 0xFFFFFFFF);
}
static inline void isp1760_field_clear(struct regmap_field **fields, u32 field)
{
isp1760_field_write(fields, field, 0);
}
static inline u32 isp1760_reg_read(struct regmap *regs, u32 reg)
{
unsigned int val;
regmap_read(regs, reg, &val);
return val;
}
static inline void isp1760_reg_write(struct regmap *regs, u32 reg, u32 val)
{
regmap_write(regs, reg, val);
}
#endif
Annotation
- Immediate include surface: `linux/ioport.h`, `linux/regmap.h`, `isp1760-hcd.h`, `isp1760-udc.h`.
- Detected declarations: `struct device`, `struct gpio_desc`, `struct isp1760_device`, `function isp1760_field_read`, `function isp1760_field_write`, `function isp1760_field_set`, `function isp1760_field_clear`, `function isp1760_reg_read`, `function isp1760_reg_write`.
- Atlas domain: Driver Families / drivers/usb.
- 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.