avr32dci.h (193045) | avr32dci.h (228483) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/controller/avr32dci.h 193045 2009-05-29 18:46:57Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/controller/avr32dci.h 228483 2011-12-14 00:28:54Z hselasky $ */ |
2/*- 3 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 151 unchanged lines hidden (view full) --- 161 162struct avr32dci_td { 163 struct avr32dci_td *obj_next; 164 avr32dci_cmd_t *func; 165 struct usb_page_cache *pc; 166 uint32_t offset; 167 uint32_t remainder; 168 uint16_t max_packet_size; | 2/*- 3 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 151 unchanged lines hidden (view full) --- 161 162struct avr32dci_td { 163 struct avr32dci_td *obj_next; 164 avr32dci_cmd_t *func; 165 struct usb_page_cache *pc; 166 uint32_t offset; 167 uint32_t remainder; 168 uint16_t max_packet_size; |
169 uint8_t bank_shift; |
|
169 uint8_t error:1; 170 uint8_t alt_next:1; 171 uint8_t short_pkt:1; 172 uint8_t support_multi_buffer:1; 173 uint8_t did_stall:1; 174 uint8_t ep_no:3; 175}; 176 --- 64 unchanged lines hidden (view full) --- 241 242 struct avr32dci_flags sc_flags; 243}; 244 245/* prototypes */ 246 247usb_error_t avr32dci_init(struct avr32dci_softc *sc); 248void avr32dci_uninit(struct avr32dci_softc *sc); | 170 uint8_t error:1; 171 uint8_t alt_next:1; 172 uint8_t short_pkt:1; 173 uint8_t support_multi_buffer:1; 174 uint8_t did_stall:1; 175 uint8_t ep_no:3; 176}; 177 --- 64 unchanged lines hidden (view full) --- 242 243 struct avr32dci_flags sc_flags; 244}; 245 246/* prototypes */ 247 248usb_error_t avr32dci_init(struct avr32dci_softc *sc); 249void avr32dci_uninit(struct avr32dci_softc *sc); |
249void avr32dci_suspend(struct avr32dci_softc *sc); 250void avr32dci_resume(struct avr32dci_softc *sc); | |
251void avr32dci_interrupt(struct avr32dci_softc *sc); 252void avr32dci_vbus_interrupt(struct avr32dci_softc *sc, uint8_t is_on); 253 254#endif /* _AVR32DCI_H_ */ | 250void avr32dci_interrupt(struct avr32dci_softc *sc); 251void avr32dci_vbus_interrupt(struct avr32dci_softc *sc, uint8_t is_on); 252 253#endif /* _AVR32DCI_H_ */ |