174 const u8 PP_DMA_MASK = 0x0F;
175 const u8 PP_DMA_SELECTION_REGISTER = 0x26;
176 u8 current_config, new_config;
180 PP_DMA_SELECTION_REGISTER);
181 ASSERT(!(drq & ~PP_DMA_MASK));
182 new_config = (current_config & ~PP_DMA_MASK) | drq;
191 u8 irq_config_register = 0, irq_config_mask = 0;
192 u8 current_config, new_config;
196 irq_config_register = 0x27;
197 irq_config_mask = 0x0F;
200 irq_config_register = 0x28;
201 irq_config_mask = 0xF0;
205 irq_config_register = 0x28;
206 irq_config_mask = 0x0F;
216 new_config = (current_config & ~irq_config_mask) | irq;
222 u8 power_register = 0, power_mask = 0, current_power, new_power;
226 power_register = 0x01;
230 power_register = 0x02;
234 power_register = 0x02;
245 new_power = current_power & ~power_mask;
250 new_power |= power_mask;
#define printk(level,...)
const struct pnp_mode_ops pnp_conf_mode_55_aa
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)
uint8_t pc_keyboard_init(uint8_t probe_aux)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
void pnp_exit_conf_mode(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)
u8 pnp_read_config(struct device *dev, u8 reg)
void pnp_enter_conf_mode(struct device *dev)
void pnp_write_config(struct device *dev, u8 reg, u8 value)
#define IORESOURCE_STORED
#define IORESOURCE_ASSIGNED
static void lpc47n227_init(struct device *dev)
Initialize the specified Super I/O device.
struct chip_operations superio_smsc_lpc47n227_ops
void lpc47n227_pnp_set_enable(struct device *dev, int enable)
void lpc47n227_pnp_enable_resources(struct device *dev)
static void enable_dev(struct device *dev)
Create device structures and allocate resources to devices specified in the pnp_dev_info array (above...
void lpc47n227_pnp_set_irq(struct device *dev, u8 irq)
static struct device_operations ops
static struct pnp_info pnp_dev_info[]
void lpc47n227_pnp_set_drq(struct device *dev, u8 drq)
static void lpc47n227_pnp_set_resource(struct device *dev, struct resource *resource)
void lpc47n227_pnp_set_iobase(struct device *dev, u16 iobase)
void lpc47n227_pnp_set_resources(struct device *dev)
Configure the specified Super I/O device with the resources (I/O space, etc.) that have been allocate...
void lpc47n227_pnp_enable(struct device *dev)
void(* read_resources)(struct device *dev)
DEVTREE_CONST struct resource * resource_list
DEVTREE_CONST struct resource * next