57 byte |= 1 << 0 | 1 << 3;
92 res->
base = 0xff800000;
93 res->
size = 0x00800000;
102 res->
size = 0x00001000;
131 u16 reg_size[1] = {512};
147 if (reg_x & (1 << 2))
150 if (reg_x & (1 << 24))
153 if (reg_x & (1 << 25))
157 if (wiosize & (1 << 0))
173 u32 rsize, set = 0, set_x = 0;
247 if ((var_num > 0) && ((
base >=reg_var[0]) &&
248 ((
base + res->
size) <= (reg_var[0] + reg_size[0]))))
252 if (res->
size <= rsize) {
256 }
else if ((var_num < 3) &&
257 ((res->
size <= 16) || (res->
size == 512))) {
262 if (res->
size <= 16) {
280 printk(
BIOS_ERR,
"cannot fit LPC decode region:%s, base=0x%08x, end=0x%08x\n",
324 if (
CONFIG(HAVE_SMI_HANDLER))
335 #if CONFIG(HAVE_ACPI_TABLES)
344 static const struct pci_driver lpc_driver
__pci_driver = {
unsigned long acpi_write_hpet(const struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
#define SPIROM_BASE_ADDRESS_REGISTER
static int acpi_is_wakeup_s3(void)
#define printk(level,...)
void outl(u32 val, u16 port)
DEVTREE_CONST struct device * pcidev_on_root(uint8_t dev, uint8_t fn)
void fixed_mem_resource(struct device *dev, unsigned long index, unsigned long basek, unsigned long sizek, unsigned long type)
struct resource * new_resource(struct device *dev, unsigned int index)
See if a resource structure already exists for a given index and if not allocate one.
void compact_resources(struct device *dev)
See if we have unused but allocated resource structures.
resource_t resource_end(const struct resource *resource)
Compute the maximum address that is part of a resource.
struct resource * find_resource(const struct device *dev, unsigned int index)
Return an existing resource structure for a given index.
const char * dev_path(const struct device *dev)
static __always_inline void pci_write_config32(const struct device *dev, u16 reg, u32 val)
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline u32 pci_read_config32(const struct device *dev, u16 reg)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
static __always_inline void pci_write_config16(const struct device *dev, u16 reg, u16 val)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
void cmos_check_update_date(void)
void cmos_init(bool invalid)
void pci_dev_enable_resources(struct device *dev)
void pci_dev_read_resources(struct device *dev)
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
void pci_dev_set_resources(struct device *dev)
#define PCI_DID_AMD_SB900_LPC
#define IORESOURCE_SUBTRACTIVE
#define IORESOURCE_ASSIGNED
#define IOINDEX_SUBTRACTIVE(IDX, LINK)
void scan_static_bus(struct device *bus)
static void lpc_final(struct device *dev)
static const char * lpc_acpi_name(const struct device *dev)
static void hudson_lpc_set_resources(struct device *dev)
static void hudson_lpc_enable_childrens_resources(struct device *dev)
Enable resources for children devices.
static void hudson_lpc_enable_resources(struct device *dev)
static struct device_operations lpc_ops
static void lpc_init(struct device *dev)
static void hudson_lpc_read_resources(struct device *dev)
static const struct pci_driver lpc_driver __pci_driver
DEVTREE_CONST struct bus * next
DEVTREE_CONST struct device * children
DEVTREE_CONST struct device * dev
void(* read_resources)(struct device *dev)
enum device_path_type type
DEVTREE_CONST struct device * sibling
DEVTREE_CONST struct bus * link_list
DEVTREE_CONST struct resource * resource_list
DEVTREE_CONST struct resource * next