Ignore:
File:
1 edited

Legend:

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

    r26bc0fd1 r3e6a98c5  
    5151#include <ops/hw_res.h>
    5252#include <device/hw_res.h>
    53 #include <ops/pio_window.h>
    54 #include <device/pio_window.h>
    5553
    5654#define NAME "rootpc"
     
    5856typedef struct rootpc_fun {
    5957        hw_resource_list_t hw_resources;
    60         pio_window_t pio_window;
    6158} rootpc_fun_t;
    6259
     
    9693static rootpc_fun_t pci_data = {
    9794        .hw_resources = {
    98                 sizeof(pci_conf_regs) / sizeof(pci_conf_regs[0]),
     95                sizeof(pci_conf_regs)/sizeof(pci_conf_regs[0]),
    9996                pci_conf_regs
    100         },
    101         .pio_window = {
    102                 .mem = {
    103                         .base = UINT32_C(0),
    104                         .size = UINT32_C(0xffffffff) /* practical maximum */
    105                 },
    106                 .io = {
    107                         .base = UINT32_C(0),
    108                         .size = UINT32_C(0x10000)
    109                 }
    11097        }
    11198};
     
    130117       
    131118        return false;
    132 }
    133 
    134 static pio_window_t *rootpc_get_pio_window(ddf_fun_t *fnode)
    135 {
    136         rootpc_fun_t *fun = rootpc_fun(fnode);
    137        
    138         assert(fun != NULL);
    139         return &fun->pio_window;
    140119}
    141120
     
    143122        .get_resource_list = &rootpc_get_resources,
    144123        .enable_interrupt = &rootpc_enable_interrupt,
    145 };
    146 
    147 static pio_window_ops_t fun_pio_window_ops = {
    148         .get_pio_window = &rootpc_get_pio_window
    149124};
    150125
     
    222197        ddf_log_init(NAME);
    223198        rootpc_fun_ops.interfaces[HW_RES_DEV_IFACE] = &fun_hw_res_ops;
    224         rootpc_fun_ops.interfaces[PIO_WINDOW_DEV_IFACE] = &fun_pio_window_ops;
    225199}
    226200
Note: See TracChangeset for help on using the changeset viewer.