Don't forget to se the device_t back pointer in the softc.
This commit is contained in:
parent
5469c6de57
commit
4137b5c813
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ahcisata_pci.c,v 1.9 2008/03/18 20:46:36 cube Exp $ */
|
/* $NetBSD: ahcisata_pci.c,v 1.10 2008/03/20 16:00:16 cube Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006 Manuel Bouyer.
|
* Copyright (c) 2006 Manuel Bouyer.
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.9 2008/03/18 20:46:36 cube Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.10 2008/03/20 16:00:16 cube Exp $");
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
|
@ -106,6 +106,8 @@ ahci_pci_attach(device_t parent, device_t self, void *aux)
|
||||||
pci_intr_handle_t intrhandle;
|
pci_intr_handle_t intrhandle;
|
||||||
void *ih;
|
void *ih;
|
||||||
|
|
||||||
|
sc->ah_sc.sc_atac.atac_dev = self;
|
||||||
|
|
||||||
if (pci_mapreg_map(pa, AHCI_PCI_ABAR,
|
if (pci_mapreg_map(pa, AHCI_PCI_ABAR,
|
||||||
PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT, 0,
|
PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT, 0,
|
||||||
&sc->sc_ahcit, &sc->sc_ahcih, NULL, &size) != 0) {
|
&sc->sc_ahcit, &sc->sc_ahcih, NULL, &size) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue