diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-02-20 22:33:38 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-02-20 22:33:38 +0000 |
commit | f492cb777ac51e0b23a54a598e3704ce56522bcc (patch) | |
tree | d3c569e1de28048cbc6fa17fd31121bc67c2c2b6 /sys/dev/pci/ahci.c | |
parent | 97cc075bab22578c6184a864bf2e081b7ff6f260 (diff) |
rename ccb_id to ccb_slot so its more clear what its used for. stash a
pointer to the port and the ata_xfer in there too.
Diffstat (limited to 'sys/dev/pci/ahci.c')
-rw-r--r-- | sys/dev/pci/ahci.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index 9123eea3f10..a9ed61e33fe 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.45 2007/02/20 22:27:59 dlg Exp $ */ +/* $OpenBSD: ahci.c,v 1.46 2007/02/20 22:33:37 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -314,9 +314,13 @@ struct ahci_dmamem { #define AHCI_DMA_KVA(_adm) ((void *)(_adm)->adm_kva) struct ahci_softc; +struct ahci_port; struct ahci_ccb { - int ccb_id; + int ccb_slot; + struct ahci_port *ccb_port; + + struct ata_xfer *ccb_xa; struct ahci_cmd *ccb_cmd; u_int64_t ccb_cmd_dva; @@ -655,7 +659,8 @@ ahci_port_alloc(struct ahci_softc *sc, u_int port) goto freemaps; } - ccb->ccb_id = i; + ccb->ccb_slot = i; + ccb->ccb_port = ap; ccb->ccb_cmd = (struct ahci_cmd *)(kva + offset); ccb->ccb_cmd_dva = dva + offset; offset += sizeof(struct ahci_cmd); |