summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2007-02-20 22:33:37 +0000
committerdlg <dlg@openbsd.org>2007-02-20 22:33:37 +0000
commit838b76cc8b744a17c985ac760b288c09ede84f4e (patch)
tree808089660d61741ac826e1d790fd8f51a48bdac7 /sys/dev/pci
parentoops, missed one in the cmd list entry (diff)
downloadwireguard-openbsd-838b76cc8b744a17c985ac760b288c09ede84f4e.tar.xz
wireguard-openbsd-838b76cc8b744a17c985ac760b288c09ede84f4e.zip
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')
-rw-r--r--sys/dev/pci/ahci.c11
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);