165 const u8 PP_DMA_MASK = 0x0F;
166 const u8 PP_DMA_SELECTION_REGISTER = 0x26;
167 u8 current_config, new_config;
171 PP_DMA_SELECTION_REGISTER);
172 ASSERT(!(drq & ~PP_DMA_MASK));
173 new_config = (current_config & ~PP_DMA_MASK) | drq;
182 u8 irq_config_register = 0, irq_config_mask = 0;
183 u8 current_config, new_config;
187 irq_config_register = 0x27;
188 irq_config_mask = 0x0F;
191 irq_config_register = 0x28;
192 irq_config_mask = 0xF0;
196 irq_config_register = 0x28;
197 irq_config_mask = 0x0F;
204 ASSERT(!(irq & ~irq_config_mask));
207 new_config = (current_config & ~irq_config_mask) | irq;
213 u8 power_register = 0, power_mask = 0, current_power, new_power;
217 power_register = 0x01;
221 power_register = 0x02;
225 power_register = 0x02;
234 new_power = current_power & ~power_mask;
239 new_power |= power_mask;
#define printk(level,...)
void outb(u8 val, u16 port)
void report_resource_stored(struct device *dev, const struct resource *resource, const char *comment)
Print the resource that was just stored.
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)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
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)
u8 pnp_read_config(struct device *dev, u8 reg)
void pnp_write_config(struct device *dev, u8 reg, u8 value)
#define IORESOURCE_STORED
#define IORESOURCE_ASSIGNED
static void lpc47n217_pnp_set_iobase(struct device *dev, u16 iobase)
static void lpc47n217_pnp_enable(struct device *dev)
static void pnp_exit_conf_state(struct device *dev)
static void lpc47n217_pnp_set_enable(struct device *dev, int enable)
static void lpc47n217_pnp_set_resources(struct device *dev)
Configure the specified Super I/O device with the resources (I/O space, etc.) that have been allocate...
static void enable_dev(struct device *dev)
Create device structures and allocate resources to devices specified in the pnp_dev_info array (above...
static struct device_operations ops
static struct pnp_info pnp_dev_info[]
static void lpc47n217_init(struct device *dev)
Initialize the specified Super I/O device.
static void lpc47n217_pnp_enable_resources(struct device *dev)
static void lpc47n217_pnp_set_resource(struct device *dev, struct resource *resource)
static void pnp_enter_conf_state(struct device *dev)
struct chip_operations superio_smsc_lpc47n217_ops
static void lpc47n217_pnp_set_irq(struct device *dev, u8 irq)
static void lpc47n217_pnp_set_drq(struct device *dev, u8 drq)
void(* read_resources)(struct device *dev)
DEVTREE_CONST struct resource * resource_list
DEVTREE_CONST struct resource * next