27 #include <linux/kernel.h>
28 #include <linux/module.h>
29 #include <linux/device.h>
31 #include <linux/pci.h>
36 #define VX855_CFG_PMIO_OFFSET 0x88
39 #define VX855_PMIO_ACPI 0x00
40 #define VX855_PMIO_ACPI_LEN 0x0b
43 #define VX855_PMIO_PPM 0x10
44 #define VX855_PMIO_PPM_LEN 0x08
47 #define VX855_PMIO_GPPM 0x20
48 #define VX855_PMIO_R_GPI 0x48
49 #define VX855_PMIO_R_GPO 0x4c
50 #define VX855_PMIO_GPPM_LEN 0x33
52 #define VSPIC_MMIO_SIZE 0x1000
54 static struct resource vx855_gpio_resources[] = {
63 static struct mfd_cell vx855_cells[] = {
66 .num_resources =
ARRAY_SIZE(vx855_gpio_resources),
67 .resources = vx855_gpio_resources,
71 .ignore_resource_conflicts =
true,
86 if (!gpio_io_offset) {
88 "BIOS did not assign PMIO base offset?!?\n");
95 gpio_io_offset &= 0xff80;
100 vx855_gpio_resources[0].
end = vx855_gpio_resources[0].
start + 3;
102 vx855_gpio_resources[1].
end = vx855_gpio_resources[1].
start + 3;
129 .id_table = vx855_pci_tbl,
130 .probe = vx855_probe,