1/*
2 * Copyright (c) 2007-2013 ETH Zurich.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
8 */
9
10#ifndef USB_OHCI_MEMORY_H_
11#define USB_OHCI_MEMORY_H_
12
13/* prototypes */
14
15struct usb_ohci_hcca *usb_ohci_hcca_alloc(void);
16usb_paddr_t usb_ohci_hcca_physaddr(void);
17
18struct usb_ohci_td *usb_ohci_td_alloc(void);
19void usb_ohci_td_free(struct usb_ohci_td *td);
20
21struct usb_ohci_itd *usb_ohci_itd_alloc(void);
22void usb_ohci_itd_free(struct usb_ohci_itd *td);
23
24struct usb_ohci_ed *usb_ohci_ed_alloc(void);
25void usb_ohci_ed_free(struct usb_ohci_ed *ed);
26
27usb_paddr_t usb_ohci_buffer_alloc(uint32_t size, uint32_t align);
28void usb_ohci_buffer_free(usb_paddr_t buf);
29
30
31#endif /* _USB_OHCI_MEMORY_H_ */
32