include/linux/sm501.h
Source file repositories/reference/linux-study-clean/include/linux/sm501.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/sm501.h- Extension
.h- Size
- 4008 bytes
- Lines
- 168
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct sm501_platdata_fbsubstruct sm501_platdata_fbstruct sm501_platdata_gpio_i2cstruct sm501_reg_initstruct sm501_initdatastruct sm501_init_gpiostruct sm501_platdataenum sm501_fb_routing
Annotated Snippet
struct sm501_platdata_fbsub {
struct fb_videomode *def_mode;
unsigned int def_bpp;
unsigned long max_mem;
unsigned int flags;
};
enum sm501_fb_routing {
SM501_FB_OWN = 0, /* CRT=>CRT, Panel=>Panel */
SM501_FB_CRT_PANEL = 1, /* Panel=>CRT, Panel=>Panel */
};
/* sm501_platdata_fb flag field bit definitions */
#define SM501_FBPD_SWAP_FB_ENDIAN (1<<0) /* need to endian swap */
/* sm501_platdata_fb
*
* configuration data for the framebuffer driver
*/
struct sm501_platdata_fb {
enum sm501_fb_routing fb_route;
unsigned int flags;
struct sm501_platdata_fbsub *fb_crt;
struct sm501_platdata_fbsub *fb_pnl;
};
/* gpio i2c
*
* Note, we have to pass in the bus number, as the number used will be
* passed to the i2c-gpio driver's platform_device.id, subsequently used
* to register the i2c bus.
*/
struct sm501_platdata_gpio_i2c {
unsigned int bus_num;
unsigned int pin_sda;
unsigned int pin_scl;
int udelay;
int timeout;
};
/* sm501_initdata
*
* use for initialising values that may not have been setup
* before the driver is loaded.
*/
struct sm501_reg_init {
unsigned long set;
unsigned long mask;
};
#define SM501_USE_USB_HOST (1<<0)
#define SM501_USE_USB_SLAVE (1<<1)
#define SM501_USE_SSP0 (1<<2)
#define SM501_USE_SSP1 (1<<3)
#define SM501_USE_UART0 (1<<4)
#define SM501_USE_UART1 (1<<5)
#define SM501_USE_FBACCEL (1<<6)
#define SM501_USE_AC97 (1<<7)
#define SM501_USE_I2S (1<<8)
#define SM501_USE_GPIO (1<<9)
#define SM501_USE_ALL (0xffffffff)
struct sm501_initdata {
struct sm501_reg_init gpio_low;
struct sm501_reg_init gpio_high;
struct sm501_reg_init misc_timing;
struct sm501_reg_init misc_control;
unsigned long devices;
unsigned long mclk; /* non-zero to modify */
unsigned long m1xclk; /* non-zero to modify */
};
/* sm501_init_gpio
*
* default gpio settings
*/
struct sm501_init_gpio {
struct sm501_reg_init gpio_data_low;
struct sm501_reg_init gpio_data_high;
struct sm501_reg_init gpio_ddr_low;
struct sm501_reg_init gpio_ddr_high;
};
Annotation
- Detected declarations: `struct sm501_platdata_fbsub`, `struct sm501_platdata_fb`, `struct sm501_platdata_gpio_i2c`, `struct sm501_reg_init`, `struct sm501_initdata`, `struct sm501_init_gpio`, `struct sm501_platdata`, `enum sm501_fb_routing`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.