-/* $OpenBSD: atascsi.c,v 1.123 2015/03/14 03:38:47 jsg Exp $ */
+/* $OpenBSD: atascsi.c,v 1.124 2015/05/15 10:54:26 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
return (ENXIO);
}
- type = as->as_methods->probe(as->as_cookie, port, link->lun);
+ type = as->as_methods->ata_probe(as->as_cookie, port, link->lun);
switch (type) {
case ATA_PORT_T_DISK:
break;
free(ap, M_DEVBUF, 0);
unsupported:
- as->as_methods->free(as->as_cookie, port, link->lun);
+ as->as_methods->ata_free(as->as_cookie, port, link->lun);
return (rv);
}
free(ap, M_DEVBUF, 0);
ahp->ahp_ports[link->lun] = NULL;
- as->as_methods->free(as->as_cookie, port, link->lun);
+ as->as_methods->ata_free(as->as_cookie, port, link->lun);
if (link->lun == ahp->ahp_nports - 1) {
/* we've already freed all of ahp->ahp_ports, now
-/* $OpenBSD: atascsi.h,v 1.48 2013/12/09 11:44:52 dlg Exp $ */
+/* $OpenBSD: atascsi.h,v 1.49 2015/05/15 10:54:26 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
*/
struct atascsi_methods {
- int (*probe)(void *, int, int);
- void (*free)(void *, int, int);
+ int (*ata_probe)(void *, int, int);
+ void (*ata_free)(void *, int, int);
struct ata_xfer * (*ata_get_xfer)(void *, int);
void (*ata_put_xfer)(struct ata_xfer *);
void (*ata_cmd)(struct ata_xfer *);