Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/infrastructure/rootpc/rootpc.c

    r230385c re882e3a  
    4848#include <ddf/driver.h>
    4949#include <ddf/log.h>
    50 #include <devman.h>
    51 #include <ipc/devman.h>
    5250#include <ipc/dev_iface.h>
    5351#include <ops/hw_res.h>
     
    7775};
    7876
    79 static hw_resource_t pci_conf_regs[] = {
    80         {
    81                 .type = IO_RANGE,
    82                 .res.io_range = {
    83                         .address = 0xCF8,
    84                         .size = 4,
    85                         .endianness = LITTLE_ENDIAN
    86                 }
    87         },
    88         {
    89                 .type = IO_RANGE,
    90                 .res.io_range = {
    91                         .address = 0xCFC,
    92                         .size = 4,
    93                         .endianness = LITTLE_ENDIAN
    94                 }
     77static hw_resource_t pci_conf_regs = {
     78        .type = IO_RANGE,
     79        .res.io_range = {
     80                .address = 0xCF8,
     81                .size = 8,
     82                .endianness = LITTLE_ENDIAN
    9583        }
    9684};
     
    9886static rootpc_fun_t pci_data = {
    9987        .hw_resources = {
    100                 sizeof(pci_conf_regs)/sizeof(pci_conf_regs[0]),
    101                 pci_conf_regs
     88                1,
     89                &pci_conf_regs
    10290        }
    10391};
Note: See TracChangeset for help on using the changeset viewer.