aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hptmv
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-06-14 00:54:57 +0000
committerXin LI <delphij@FreeBSD.org>2014-06-14 00:54:57 +0000
commit5cf8daa456eb7f757eb19f860bc19c2bae61a7f4 (patch)
tree25fea264df1355e1241ce5a420efd238a44d5665 /sys/dev/hptmv
parent34cbdf177c04d04220da63f9cfe7f0874e971592 (diff)
Notes
Diffstat (limited to 'sys/dev/hptmv')
-rw-r--r--sys/dev/hptmv/entry.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/hptmv/entry.c b/sys/dev/hptmv/entry.c
index 80f513036a2b..7c324f88cfce 100644
--- a/sys/dev/hptmv/entry.c
+++ b/sys/dev/hptmv/entry.c
@@ -2015,7 +2015,7 @@ hpt_probe(device_t dev)
{
KdPrintI((CONTROLLER_NAME " found\n"));
device_set_desc(dev, CONTROLLER_NAME);
- return 0;
+ return (BUS_PROBE_DEFAULT);
}
else
return(ENXIO);
@@ -2622,7 +2622,14 @@ launch_worker_thread(void)
int HPTLIBAPI fOsBuildSgl(_VBUS_ARG PCommand pCmd, FPSCAT_GATH pSg, int logical)
{
-
+ union ccb *ccb = (union ccb *)pCmd->pOrgCommand;
+
+ if (logical) {
+ pSg->dSgAddress = (ULONG_PTR)(UCHAR *)ccb->csio.data_ptr;
+ pSg->wSgSize = ccb->csio.dxfer_len;
+ pSg->wSgFlag = SG_FLAG_EOT;
+ return TRUE;
+ }
/* since we have provided physical sg, nobody will ask us to build physical sg */
HPT_ASSERT(0);
return FALSE;