/* serial.h - serial device interface */ /* * VasEBoot -- GRand Unified Bootloader * Copyright (C) 2010 Free Software Foundation, Inc. * * VasEBoot is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VasEBoot is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with VasEBoot. If not, see . */ #ifndef VasEBoot_USBSERIAL_HEADER #define VasEBoot_USBSERIAL_HEADER 1 void VasEBoot_usbserial_fini (struct VasEBoot_serial_port *port); void VasEBoot_usbserial_detach (VasEBoot_usb_device_t usbdev, int configno, int interfno); int VasEBoot_usbserial_attach (VasEBoot_usb_device_t usbdev, int configno, int interfno, struct VasEBoot_serial_driver *driver, int in_endp, int out_endp); enum { VasEBoot_USB_SERIAL_ENDPOINT_LAST_MATCHING = -1 }; int VasEBoot_usbserial_fetch (struct VasEBoot_serial_port *port, VasEBoot_size_t header_size); #endif