Changeset 97a62fe in mainline for uspace/drv/pciintel/pci.h


Ignore:
Timestamp:
2011-02-14T21:41:50Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cd0684d
Parents:
7df0477e
Message:

Refactor create_function(), delete_function() and register_function() into
ddf_fun_create(), ddf_fun_destroy() and ddf_fun_bind(). This is not just
a rename.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/pciintel/pci.h

    r7df0477e r97a62fe  
    4545#define PCI_MAX_HW_RES 8
    4646
     47typedef struct pciintel_bus {
     48        /** DDF device node */
     49        device_t *dnode;
     50        uint32_t conf_io_addr;
     51        void *conf_data_port;
     52        void *conf_addr_port;
     53        fibril_mutex_t conf_mutex;
     54} pci_bus_t;
     55
    4756typedef struct pci_fun_data {
     57        pci_bus_t *busptr;
    4858        function_t *fnode;
    4959
     
    5565        hw_resource_list_t hw_resources;
    5666} pci_fun_t;
    57 
    58 typedef struct pciintel_bus {
    59         /** DDF device node */
    60         device_t *dnode;
    61         uint32_t conf_io_addr;
    62         void *conf_data_port;
    63         void *conf_addr_port;
    64         fibril_mutex_t conf_mutex;
    65 } pci_bus_t;
    6667
    6768extern void pci_fun_create_match_ids(pci_fun_t *);
     
    7980extern void pci_add_interrupt(pci_fun_t *, int);
    8081
    81 extern pci_fun_t *pci_fun_new(void);
     82extern pci_fun_t *pci_fun_new(pci_bus_t *);
    8283extern void pci_fun_init(pci_fun_t *, int, int, int);
    8384extern void pci_fun_delete(pci_fun_t *);
    84 extern void pci_fun_create_name(pci_fun_t *);
     85extern char *pci_fun_create_name(pci_fun_t *);
    8586
    8687extern void pci_bus_scan(pci_bus_t *, int);
Note: See TracChangeset for help on using the changeset viewer.