23 #if CONFIG(HAVE_ACPI_TABLES)
24 void pnp_ssdt_enter_conf_mode(
struct device *dev,
const char *idx,
const char *data)
29 void pnp_ssdt_exit_conf_mode(
struct device *dev,
const char *idx,
const char *data)
76 tmp &= ~(1 << bitpos);
90 return !!(tmp & (1 << bitpos));
130 "0x%010llx not assigned in devicetree\n",
dev_path(dev),
226 for (bit = 0; bit <= 15 && (
mask & (1 << bit)) == 0; ++bit)
235 for (bit = 15; bit != 0 && (
mask & (1 << bit)) == 0; --bit)
382 for (i = 0; i < functions; i++) {
#define printk(level,...)
struct device * alloc_find_dev(struct bus *parent, struct device_path *path)
See if a device structure already exists and if not allocate it.
void outb(u8 val, u16 port)
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.
const char * resource_type(const struct resource *resource)
Return the resource type of a resource.
void report_resource_stored(struct device *dev, const struct resource *resource, const char *comment)
Print the resource that was just stored.
const char * dev_path(const struct device *dev)
static struct smmstore_params_info info
static struct device_operations ops
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
#define PNP_SKIP_FUNCTION
void pnp_exit_conf_mode(struct device *dev)
void pnp_enable(struct device *dev)
int pnp_read_enable(struct device *dev)
void pnp_read_resources(struct device *dev)
void pnp_enable_devices(struct device *base_dev, struct device_operations *ops, unsigned int functions, struct pnp_info *info)
struct device_operations pnp_ops
void pnp_set_irq(struct device *dev, u8 index, u8 irq)
void pnp_set_logical_device(struct device *dev)
static void pnp_set_resource(struct device *dev, struct resource *resource)
void pnp_set_enable(struct device *dev, int enable)
void pnp_set_resources(struct device *dev)
void pnp_set_drq(struct device *dev, u8 index, u8 drq)
void pnp_alt_enable(struct device *dev)
u8 pnp_read_config(struct device *dev, u8 reg)
void pnp_unset_and_set_config(struct device *dev, u8 reg, u8 unset, u8 set)
void pnp_set_iobase(struct device *dev, u8 index, u16 iobase)
static void get_resources(struct device *dev, struct pnp_info *info)
void pnp_enter_conf_mode(struct device *dev)
static void pnp_get_ioresource(struct device *dev, u8 index, u16 mask)
void pnp_write_config(struct device *dev, u8 reg, u8 value)
void pnp_enable_resources(struct device *dev)
#define IORESOURCE_STORED
#define IORESOURCE_ASSIGNED
void(* read_resources)(struct device *dev)
const struct pnp_mode_ops * ops_pnp_mode
enum device_path_type type
struct device_operations * ops
DEVTREE_CONST struct bus * bus
DEVTREE_CONST struct resource * resource_list
void(* enter_conf_mode)(struct device *dev)
void(* exit_conf_mode)(struct device *dev)
DEVTREE_CONST struct resource * next