Make defines follow the standard.

This commit is contained in:
augustss 1999-09-16 21:53:58 +00:00
parent 4014b40eb8
commit 97a24aa488
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: umass.c,v 1.18 1999/09/13 21:35:08 augustss Exp $ */
/* $NetBSD: umass.c,v 1.19 1999/09/16 21:53:58 augustss Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -234,7 +234,7 @@ USB_MATCH(umass)
if (id
&& id->bInterfaceClass == UCLASS_MASS
&& id->bInterfaceSubClass == USUBCLASS_SCSI
&& id->bInterfaceProtocol == UPROTO_MASS_BULK)
&& id->bInterfaceProtocol == UPROTO_MASS_BULK_P)
return(UMATCH_IFACECLASS_IFACESUBCLASS_IFACEPROTO);
return(UMATCH_NONE);
@ -281,8 +281,8 @@ USB_ATTACH(umass)
case UPROTO_MASS_CBI_I: protocol = "CBI with CCI"; break;
case UPROTO_MASS_CBI: protocol = "CBI"; break;
#endif
case UPROTO_MASS_BULK2: /* XXX Is this really right? */
case UPROTO_MASS_BULK: protocol = "Bulk-Only"; break;
case UPROTO_MASS_BULK: /* XXX Is this really right? */
case UPROTO_MASS_BULK_P: protocol = "Bulk-Only"; break;
default:
panic("umass_attach: impossible protocol");
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: usb.h,v 1.33 1999/09/11 08:19:27 augustss Exp $ */
/* $NetBSD: usb.h,v 1.34 1999/09/16 21:53:58 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -360,8 +360,8 @@ typedef struct {
#define USUBCLASS_SCSI 6
#define UPROTO_MASS_CBI_I 0
#define UPROTO_MASS_CBI 1
#define UPROTO_MASS_BULK 80
#define UPROTO_MASS_BULK2 2
#define UPROTO_MASS_BULK 2
#define UPROTO_MASS_BULK_P 80
#define UCLASS_HUB 9
#define USUBCLASS_HUB 0
#define UCLASS_DATA 10