Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/pci



macallan%NetBSD.org@localhost wrote:

> Module Name:  src
> Committed By: macallan
> Date:         Fri Feb  9 21:39:38 UTC 2007
> 
> Modified Files:
>       src/sys/dev/pci: if_tlp_pci.c
> 
> Log Message:
> add a quirks entry for the DEC21140 found on UMAX E100 cards

The following changes are intended?
(addr and size should be bus_addr_t and bus_size_t anyway)

@@ -360,7 +363,7 @@
        prop_data_t ea;
        u_int8_t enaddr[ETHER_ADDR_LEN];
        u_int32_t val = 0;
-       pcireg_t reg;
+       pcireg_t reg, addr, size;
        int error;
 
        sc->sc_devno = pa->pa_device;
@@ -533,13 +536,13 @@
        /*
         * Map the device.
         */
+                
        ioh_valid = (pci_mapreg_map(pa, TULIP_PCI_IOBA,
            PCI_MAPREG_TYPE_IO, 0,
            &iot, &ioh, NULL, NULL) == 0);
        memh_valid = (pci_mapreg_map(pa, TULIP_PCI_MMBA,
            PCI_MAPREG_TYPE_MEM|PCI_MAPREG_MEM_TYPE_32BIT, 0,
-           &memt, &memh, NULL, NULL) == 0);
-
+           &memt, &memh, &addr, &size) == 0);
        if (memh_valid) {
                sc->sc_st = memt;
                sc->sc_sh = memh;

---
Izumi Tsutsui



Home | Main Index | Thread Index | Old Index