diff options
author | raj <raj@FreeBSD.org> | 2009-01-09 10:20:51 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2009-01-09 10:20:51 +0000 |
commit | 761fc046203f800a47f1af4d3acf0d2d07af1669 (patch) | |
tree | 28ab282455b120754c984fa2352bdf734c59d825 /sys/arm/mv/mvvar.h | |
parent | a2e0aa00719a79a8fb007b086ea855dec3bcd0f4 (diff) | |
download | FreeBSD-src-761fc046203f800a47f1af4d3acf0d2d07af1669.zip FreeBSD-src-761fc046203f800a47f1af4d3acf0d2d07af1669.tar.gz |
Improve Marvell SOCs PCI/PCIE driver.
- Provide dedicated rmans for MEM and IO resources.
- Convert PCI IRQ routing info into a table (from callback approach), provide
config data for alternative DB- boards.
- Fix a wrong boundary check error in pcib_mbus_init_bar()
Obtained from: Semihalf
Diffstat (limited to 'sys/arm/mv/mvvar.h')
-rw-r--r-- | sys/arm/mv/mvvar.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arm/mv/mvvar.h b/sys/arm/mv/mvvar.h index a92e631..061f363 100644 --- a/sys/arm/mv/mvvar.h +++ b/sys/arm/mv/mvvar.h @@ -63,7 +63,11 @@ struct obio_device { struct resource_list od_resources; }; -typedef int (*obio_get_irq_t)(u_int bus, u_int slot, u_int func, u_int pin); +struct obio_pci_irq_map { + int opim_slot; + int opim_pin; + int opim_irq; +}; struct obio_pci { int op_type; @@ -82,8 +86,8 @@ struct obio_pci { int op_mem_win_target; int op_mem_win_attr; - obio_get_irq_t op_get_irq; /* IRQ Mapping callback */ - int op_irq; /* used if callback is NULL */ + const struct obio_pci_irq_map *op_pci_irq_map; + int op_irq; /* used if IRQ map table is NULL */ }; struct gpio_config { |