Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/usb_msctest.h
/* $FreeBSD$ */ | /* $FreeBSD$ */ | ||||
/*- | /*- | ||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD | * SPDX-License-Identifier: BSD-2-Clause-FreeBSD | ||||
* | * | ||||
* Copyright (c) 2008 Hans Petter Selasky. All rights reserved. | * Copyright (c) 2008-2022 Hans Petter Selasky. | ||||
* | * | ||||
hselasky: 2021-2022 | |||||
Not Done Inline ActionsYou may want to drop the All Rights Reserved, here and elsewhere imp: You may want to drop the All Rights Reserved, here and elsewhere | |||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
* notice, this list of conditions and the following disclaimer. | * notice, this list of conditions and the following disclaimer. | ||||
* 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | * documentation and/or other materials provided with the distribution. | ||||
Show All 24 Lines | enum { | ||||
MSC_EJECT_TCT, | MSC_EJECT_TCT, | ||||
}; | }; | ||||
int usb_iface_is_cdrom(struct usb_device *udev, | int usb_iface_is_cdrom(struct usb_device *udev, | ||||
uint8_t iface_index); | uint8_t iface_index); | ||||
usb_error_t usb_msc_eject(struct usb_device *udev, | usb_error_t usb_msc_eject(struct usb_device *udev, | ||||
uint8_t iface_index, int method); | uint8_t iface_index, int method); | ||||
usb_error_t usb_msc_auto_quirk(struct usb_device *udev, | usb_error_t usb_msc_auto_quirk(struct usb_device *udev, | ||||
uint8_t iface_index); | uint8_t iface_index, const struct usb_attach_arg *uaa); | ||||
usb_error_t usb_msc_read_10(struct usb_device *udev, | usb_error_t usb_msc_read_10(struct usb_device *udev, | ||||
uint8_t iface_index, uint32_t lba, uint32_t blocks, | uint8_t iface_index, uint32_t lba, uint32_t blocks, | ||||
void *buffer); | void *buffer); | ||||
usb_error_t usb_msc_write_10(struct usb_device *udev, | usb_error_t usb_msc_write_10(struct usb_device *udev, | ||||
uint8_t iface_index, uint32_t lba, uint32_t blocks, | uint8_t iface_index, uint32_t lba, uint32_t blocks, | ||||
void *buffer); | void *buffer); | ||||
usb_error_t usb_msc_read_capacity(struct usb_device *udev, | usb_error_t usb_msc_read_capacity(struct usb_device *udev, | ||||
uint8_t iface_index, uint32_t *lba_last, | uint8_t iface_index, uint32_t *lba_last, | ||||
uint32_t *block_size); | uint32_t *block_size); | ||||
usb_error_t usb_dymo_eject(struct usb_device *udev, | usb_error_t usb_dymo_eject(struct usb_device *udev, | ||||
uint8_t iface_index); | uint8_t iface_index); | ||||
#endif /* _USB_MSCTEST_H_ */ | #endif /* _USB_MSCTEST_H_ */ |
2021-2022