usb_serial.h (184610) | usb_serial.h (185948) |
---|---|
1/* $NetBSD: ucomvar.h,v 1.9 2001/01/23 21:56:17 augustss Exp $ */ | 1/* $NetBSD: ucomvar.h,v 1.9 2001/01/23 21:56:17 augustss Exp $ */ |
2/* $FreeBSD: head/sys/dev/usb2/serial/usb2_serial.h 184610 2008-11-04 02:31:03Z alfred $ */ | 2/* $FreeBSD: head/sys/dev/usb2/serial/usb2_serial.h 185948 2008-12-11 23:13:02Z thompsa $ */ |
3 4/*- 5 * Copyright (c) 2001-2002, Shunsuke Akiyama <akiyama@jp.FreeBSD.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 132 unchanged lines hidden (view full) --- 143#define UCOM_FLAG_LL_READY 0x20 /* set if low layer is ready */ 144#define UCOM_FLAG_HL_READY 0x40 /* set if high layer is ready */ 145 uint8_t sc_lsr; 146 uint8_t sc_msr; 147 uint8_t sc_mcr; 148 uint8_t sc_ttyfreed; /* set when TTY has been freed */ 149}; 150 | 3 4/*- 5 * Copyright (c) 2001-2002, Shunsuke Akiyama <akiyama@jp.FreeBSD.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 132 unchanged lines hidden (view full) --- 143#define UCOM_FLAG_LL_READY 0x20 /* set if low layer is ready */ 144#define UCOM_FLAG_HL_READY 0x40 /* set if high layer is ready */ 145 uint8_t sc_lsr; 146 uint8_t sc_msr; 147 uint8_t sc_mcr; 148 uint8_t sc_ttyfreed; /* set when TTY has been freed */ 149}; 150 |
151int usb2_com_attach(struct usb2_com_super_softc *ssc, struct usb2_com_softc *sc, uint32_t sub_units, void *parent, const struct usb2_com_callback *callback, struct mtx *p_mtx); 152void usb2_com_detach(struct usb2_com_super_softc *ssc, struct usb2_com_softc *sc, uint32_t sub_units); | 151int usb2_com_attach(struct usb2_com_super_softc *ssc, 152 struct usb2_com_softc *sc, uint32_t sub_units, void *parent, 153 const struct usb2_com_callback *callback, struct mtx *p_mtx); 154void usb2_com_detach(struct usb2_com_super_softc *ssc, 155 struct usb2_com_softc *sc, uint32_t sub_units); |
153void usb2_com_status_change(struct usb2_com_softc *); | 156void usb2_com_status_change(struct usb2_com_softc *); |
154uint8_t usb2_com_get_data(struct usb2_com_softc *sc, struct usb2_page_cache *pc, uint32_t offset, uint32_t len, uint32_t *actlen); 155void usb2_com_put_data(struct usb2_com_softc *sc, struct usb2_page_cache *pc, uint32_t offset, uint32_t len); | 157uint8_t usb2_com_get_data(struct usb2_com_softc *sc, struct usb2_page_cache *pc, 158 uint32_t offset, uint32_t len, uint32_t *actlen); 159void usb2_com_put_data(struct usb2_com_softc *sc, struct usb2_page_cache *pc, 160 uint32_t offset, uint32_t len); |
156uint8_t usb2_com_cfg_sleep(struct usb2_com_softc *sc, uint32_t timeout); 157uint8_t usb2_com_cfg_is_gone(struct usb2_com_softc *sc); 158 159#endif /* _USB2_SERIAL_H_ */ | 161uint8_t usb2_com_cfg_sleep(struct usb2_com_softc *sc, uint32_t timeout); 162uint8_t usb2_com_cfg_is_gone(struct usb2_com_softc *sc); 163 164#endif /* _USB2_SERIAL_H_ */ |