16 #define PANEL INT15_5F35_CL_DISPLAY_DEFAULT
20 struct device *idedev, *sdhci_dev;
24 if (
inb(0x164c) & 0x08) {
40 config->ide_enable_primary = 1;
42 outb(
inb(0x1628) | 0x01, 0x1628);
46 outb(
inb(0x1628) & ~0x01, 0x1628);
struct chip_operations mainboard_ops
static int acpi_is_wakeup_s3(void)
void outb(u8 val, u16 port)
DEVTREE_CONST struct device * pcidev_on_root(uint8_t dev, uint8_t fn)
struct device * dev_find_device(u16 vendor, u16 device, struct device *from)
Find a device of a given vendor and type.
void install_intel_vga_int15_handler(int active_lfp_, int pfit_, int display_, int panel_type_)
@ GMA_INT15_ACTIVE_LFP_INT_LVDS
@ GMA_INT15_PANEL_FIT_DEFAULT
void ec_set_bit(u8 addr, u8 bit)
void ec_clr_bit(u8 addr, u8 bit)
int ec_write(u8 addr, u8 data)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
void drivers_lenovo_serial_ports_ssdt_generate(const char *scope, int have_dock_serial)
static void mainboard_init(struct device *dev)
static void fill_ssdt(const struct device *device)
static void mainboard_enable(struct device *dev)
#define PCI_DID_RICOH_R5C822
void(* enable_dev)(struct device *dev)
void(* init)(struct device *dev)
struct device_operations * ops
DEVTREE_CONST void * chip_info
int dock_ultrabay_device_present(void)