Ignore:
Timestamp:
2012-01-24T02:41:51Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
690d2e7
Parents:
948911d
Message:

pci: Setup addr port and data port separately.

We will need this for non-pc pci.

File:
1 edited

Legend:

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

    r948911d r230385c  
    7777};
    7878
    79 static hw_resource_t pci_conf_regs = {
    80         .type = IO_RANGE,
    81         .res.io_range = {
    82                 .address = 0xCF8,
    83                 .size = 8,
    84                 .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                }
    8595        }
    8696};
     
    8898static rootpc_fun_t pci_data = {
    8999        .hw_resources = {
    90                 1,
    91                 &pci_conf_regs
     100                sizeof(pci_conf_regs)/sizeof(pci_conf_regs[0]),
     101                pci_conf_regs
    92102        }
    93103};
Note: See TracChangeset for help on using the changeset viewer.