Ignore:
File:
1 edited

Legend:

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

    re882e3a r230385c  
    4848#include <ddf/driver.h>
    4949#include <ddf/log.h>
     50#include <devman.h>
     51#include <ipc/devman.h>
    5052#include <ipc/dev_iface.h>
    5153#include <ops/hw_res.h>
     
    7577};
    7678
    77 static hw_resource_t pci_conf_regs = {
    78         .type = IO_RANGE,
    79         .res.io_range = {
    80                 .address = 0xCF8,
    81                 .size = 8,
    82                 .endianness = LITTLE_ENDIAN
     79static 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                }
    8395        }
    8496};
     
    8698static rootpc_fun_t pci_data = {
    8799        .hw_resources = {
    88                 1,
    89                 &pci_conf_regs
     100                sizeof(pci_conf_regs)/sizeof(pci_conf_regs[0]),
     101                pci_conf_regs
    90102        }
    91103};
Note: See TracChangeset for help on using the changeset viewer.