usb.h (246122) | usb.h (246123) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb.h 246122 2013-01-30 15:26:04Z hselasky $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb.h 246123 2013-01-30 15:46:26Z hselasky $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 5 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 562 unchanged lines hidden (view full) --- 572 uByte bData[sizeof((uint8_t []){m})]; \ 573} __packed; \ 574static const struct name name = { \ 575 .bLength = sizeof(struct name), \ 576 .bDescriptorType = UDESC_STRING, \ 577 .bData = { m }, \ 578} 579 | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 5 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 562 unchanged lines hidden (view full) --- 572 uByte bData[sizeof((uint8_t []){m})]; \ 573} __packed; \ 574static const struct name name = { \ 575 .bLength = sizeof(struct name), \ 576 .bDescriptorType = UDESC_STRING, \ 577 .bData = { m }, \ 578} 579 |
580struct usb_string_lang { 581 uByte bLength; 582 uByte bDescriptorType; 583 uByte bData[2]; 584} __packed; 585typedef struct usb_string_lang usb_string_lang_t; 586 |
|
580struct usb_hub_descriptor { 581 uByte bDescLength; 582 uByte bDescriptorType; 583 uByte bNbrPorts; 584 uWord wHubCharacteristics; 585#define UHD_PWR 0x0003 586#define UHD_PWR_GANGED 0x0000 587#define UHD_PWR_INDIVIDUAL 0x0001 --- 200 unchanged lines hidden --- | 587struct usb_hub_descriptor { 588 uByte bDescLength; 589 uByte bDescriptorType; 590 uByte bNbrPorts; 591 uWord wHubCharacteristics; 592#define UHD_PWR 0x0003 593#define UHD_PWR_GANGED 0x0000 594#define UHD_PWR_INDIVIDUAL 0x0001 --- 200 unchanged lines hidden --- |