12 static const unsigned int io_addr[] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
25 printk(
BIOS_ERR,
"KEMPLD: Bad io value '%d' for UART#%u\n.", io, uart);
30 const int irq =
config->uart[uart].irq;
32 printk(
BIOS_ERR,
"KEMPLD: Bad irq value '%d' for UART#%u\n.", irq, uart);
37 res_io->
base = io_addr[io];
#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.
const char * dev_path(const struct device *dev)
void kempld_write8(const uint8_t addr, const uint8_t data)
int kempld_get_mutex(int timeout_ms)
void kempld_release_mutex(void)
uint8_t kempld_read8(const uint8_t addr)
static void kempld_uart_enable_resources(struct device *dev)
static void kempld_uart_read_resources(struct device *dev)
struct chip_operations ec_kontron_kempld_ops
static void kempld_enable_dev(struct device *const dev)
static struct device_operations kempld_uart_ops
int kempld_gpio_pads_config(struct device *dev)
void kempld_i2c_device_init(struct device *const dev)
#define KEMPLD_UART_IRQ_SHIFT
#define KEMPLD_UART_IRQ_MASK
#define KEMPLD_UART_IO_MASK
#define KEMPLD_UART_ENABLE
#define KEMPLD_UART_IO_SHIFT
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
#define IORESOURCE_STORED
#define IORESOURCE_ASSIGNED
void(* read_resources)(struct device *dev)
struct generic_path generic
enum device_path_type type
struct device_operations * ops
DEVTREE_CONST void * chip_info