19 #define CARDBUS_IO_SIZE 4096
20 #define CARDBUS_MEM_SIZE (32 * 1024 * 1024)
38 while ((moving & step) == 0) {
69 moving = moving_base & moving_limit;
78 moving = moving_base & moving_limit;
95 moving = moving_base & moving_limit;
107 moving = moving_base & moving_limit;
struct device_operations default_cardbus_ops_bus
static void cardbus_record_bridge_resource(struct device *dev, resource_t moving, resource_t min_size, unsigned int index, unsigned long type)
void cardbus_enable_resources(struct device *dev)
void cardbus_read_resources(struct device *dev)
#define printk(level,...)
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.
const char * dev_path(const struct device *dev)
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline void pci_write_config16(const struct device *dev, u16 reg, u16 val)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define PCI_BRIDGE_CTL_MASTER_ABORT
#define PCI_CB_BRIDGE_CTL_PREFETCH_MEM1
#define PCI_CB_BRIDGE_CTL_PARITY
#define PCI_CB_BRIDGE_CTL_SERR
#define PCI_CB_MEMORY_LIMIT_1
#define PCI_CB_MEMORY_BASE_1
#define PCI_CB_MEMORY_BASE_0
#define PCI_CB_BRIDGE_CONTROL
#define PCI_CB_BRIDGE_CTL_PREFETCH_MEM0
#define PCI_CB_IO_LIMIT_1
#define PCI_CB_MEMORY_LIMIT_0
#define PCI_BRIDGE_CTL_BUS_RESET
#define PCI_BRIDGE_CTL_VGA
#define PCI_BASE_ADDRESS_0
#define PCI_CB_IO_LIMIT_0
void pci_bus_reset(struct bus *bus)
u32 pci_moving_config32(struct device *dev, unsigned int reg)
void pci_scan_bridge(struct device *dev)
Scan a PCI bridge and the buses behind the bridge.
void pci_dev_enable_resources(struct device *dev)
struct resource * pci_get_resource(struct device *dev, unsigned long index)
Given a device and register, read the size of the BAR for that register.
void pci_dev_set_resources(struct device *dev)
#define IORESOURCE_PREFETCH
void(* read_resources)(struct device *dev)
DEVTREE_CONST struct bus * link_list