usb_mbuf.h (184610) | usb_mbuf.h (185948) |
---|---|
1/* $FreeBSD: head/sys/dev/usb2/core/usb2_mbuf.h 184610 2008-11-04 02:31:03Z alfred $ */ | 1/* $FreeBSD: head/sys/dev/usb2/core/usb2_mbuf.h 185948 2008-12-11 23:13:02Z thompsa $ */ |
2/*- 3 * Copyright (c) 2008 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. --- 80 unchanged lines hidden (view full) --- 90 91#define USB_MBUF_RESET(m) do { \ 92 (m)->cur_data_ptr = (m)->min_data_ptr; \ 93 (m)->cur_data_len = (m)->max_data_len; \ 94 (m)->last_packet = 0; \ 95 } while (0) 96 97/* prototypes */ | 2/*- 3 * Copyright (c) 2008 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. --- 80 unchanged lines hidden (view full) --- 90 91#define USB_MBUF_RESET(m) do { \ 92 (m)->cur_data_ptr = (m)->min_data_ptr; \ 93 (m)->cur_data_len = (m)->max_data_len; \ 94 (m)->last_packet = 0; \ 95 } while (0) 96 97/* prototypes */ |
98void *usb2_alloc_mbufs(struct malloc_type *type, struct usb2_ifqueue *ifq, uint32_t block_size, uint16_t nblocks); | 98void *usb2_alloc_mbufs(struct malloc_type *type, struct usb2_ifqueue *ifq, 99 uint32_t block_size, uint16_t nblocks); |
99 100#endif /* _USB2_MBUF_H_ */ | 100 101#endif /* _USB2_MBUF_H_ */ |