a
Dependencies: FATFileSystem mbed-rtos
Fork of USBHost by
targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1.h@39:d96aa62afc5b, 2017-07-27 (annotated)
- Committer:
- Kojto
- Date:
- Thu Jul 27 12:24:30 2017 +0100
- Revision:
- 39:d96aa62afc5b
Update USBHost - add targets directory
This corresponds to mbed-os/master commit 9207365
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 39:d96aa62afc5b | 1 | /* Copyright (c) 2010-2011 mbed.org, MIT License |
Kojto | 39:d96aa62afc5b | 2 | * |
Kojto | 39:d96aa62afc5b | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
Kojto | 39:d96aa62afc5b | 4 | * and associated documentation files (the "Software"), to deal in the Software without |
Kojto | 39:d96aa62afc5b | 5 | * restriction, including without limitation the rights to use, copy, modify, merge, publish, |
Kojto | 39:d96aa62afc5b | 6 | * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the |
Kojto | 39:d96aa62afc5b | 7 | * Software is furnished to do so, subject to the following conditions: |
Kojto | 39:d96aa62afc5b | 8 | * |
Kojto | 39:d96aa62afc5b | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
Kojto | 39:d96aa62afc5b | 10 | * substantial portions of the Software. |
Kojto | 39:d96aa62afc5b | 11 | * |
Kojto | 39:d96aa62afc5b | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
Kojto | 39:d96aa62afc5b | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
Kojto | 39:d96aa62afc5b | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
Kojto | 39:d96aa62afc5b | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
Kojto | 39:d96aa62afc5b | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Kojto | 39:d96aa62afc5b | 17 | */ |
Kojto | 39:d96aa62afc5b | 18 | |
Kojto | 39:d96aa62afc5b | 19 | #ifndef OHCI_WRAPP_RZ_A1_H |
Kojto | 39:d96aa62afc5b | 20 | #define OHCI_WRAPP_RZ_A1_H |
Kojto | 39:d96aa62afc5b | 21 | |
Kojto | 39:d96aa62afc5b | 22 | #ifdef __cplusplus |
Kojto | 39:d96aa62afc5b | 23 | extern "C" { |
Kojto | 39:d96aa62afc5b | 24 | #endif |
Kojto | 39:d96aa62afc5b | 25 | |
Kojto | 39:d96aa62afc5b | 26 | #define OHCI_REG_REVISION (0x00) /* HcRevision */ |
Kojto | 39:d96aa62afc5b | 27 | #define OHCI_REG_CONTROL (0x04) /* HcControl */ |
Kojto | 39:d96aa62afc5b | 28 | #define OHCI_REG_COMMANDSTATUS (0x08) /* HcCommandStatus */ |
Kojto | 39:d96aa62afc5b | 29 | #define OHCI_REG_INTERRUPTSTATUS (0x0C) /* HcInterruptStatus */ |
Kojto | 39:d96aa62afc5b | 30 | #define OHCI_REG_INTERRUPTENABLE (0x10) /* HcInterruptEnable */ |
Kojto | 39:d96aa62afc5b | 31 | #define OHCI_REG_INTERRUPTDISABLE (0x14) /* HcInterruptDisable */ |
Kojto | 39:d96aa62afc5b | 32 | #define OHCI_REG_HCCA (0x18) /* HcHCCA */ |
Kojto | 39:d96aa62afc5b | 33 | #define OHCI_REG_PERIODCURRENTED (0x1C) /* HcPeriodCurrentED */ |
Kojto | 39:d96aa62afc5b | 34 | #define OHCI_REG_CONTROLHEADED (0x20) /* HcControlHeadED */ |
Kojto | 39:d96aa62afc5b | 35 | #define OHCI_REG_CONTROLCURRENTED (0x24) /* HcControlCurrentED */ |
Kojto | 39:d96aa62afc5b | 36 | #define OHCI_REG_BULKHEADED (0x28) /* HcBulkHeadED */ |
Kojto | 39:d96aa62afc5b | 37 | #define OHCI_REG_BULKCURRENTED (0x2C) /* HcBulkCurrentED */ |
Kojto | 39:d96aa62afc5b | 38 | #define OHCI_REG_DONEHEADED (0x30) /* HcDoneHead */ |
Kojto | 39:d96aa62afc5b | 39 | #define OHCI_REG_FMINTERVAL (0x34) /* HcFmInterval */ |
Kojto | 39:d96aa62afc5b | 40 | #define OHCI_REG_FMREMAINING (0x38) /* HcFmRemaining */ |
Kojto | 39:d96aa62afc5b | 41 | #define OHCI_REG_FMNUMBER (0x3C) /* HcFmNumber */ |
Kojto | 39:d96aa62afc5b | 42 | #define OHCI_REG_PERIODICSTART (0x40) /* HcPeriodicStart */ |
Kojto | 39:d96aa62afc5b | 43 | #define OHCI_REG_LSTHRESHOLD (0x44) /* HcLSThreshold */ |
Kojto | 39:d96aa62afc5b | 44 | #define OHCI_REG_RHDESCRIPTORA (0x48) /* HcRhDescriptorA */ |
Kojto | 39:d96aa62afc5b | 45 | #define OHCI_REG_RHDESCRIPTORB (0x4C) /* HcRhDescriptorB */ |
Kojto | 39:d96aa62afc5b | 46 | #define OHCI_REG_RHSTATUS (0x50) /* HcRhStatus */ |
Kojto | 39:d96aa62afc5b | 47 | #define OHCI_REG_RHPORTSTATUS1 (0x54) /* HcRhPortStatus1 */ |
Kojto | 39:d96aa62afc5b | 48 | |
Kojto | 39:d96aa62afc5b | 49 | typedef void (usbisr_fnc_t)(void); |
Kojto | 39:d96aa62afc5b | 50 | |
Kojto | 39:d96aa62afc5b | 51 | extern void ohciwrapp_init(usbisr_fnc_t *p_usbisr_fnc); |
Kojto | 39:d96aa62afc5b | 52 | extern uint32_t ohciwrapp_reg_r(uint32_t reg_ofs); |
Kojto | 39:d96aa62afc5b | 53 | extern void ohciwrapp_reg_w(uint32_t reg_ofs, uint32_t set_data); |
Kojto | 39:d96aa62afc5b | 54 | extern void ohciwrapp_interrupt(uint32_t int_sense); |
Kojto | 39:d96aa62afc5b | 55 | |
Kojto | 39:d96aa62afc5b | 56 | #ifdef __cplusplus |
Kojto | 39:d96aa62afc5b | 57 | } |
Kojto | 39:d96aa62afc5b | 58 | #endif |
Kojto | 39:d96aa62afc5b | 59 | |
Kojto | 39:d96aa62afc5b | 60 | #endif /* OHCI_WRAPP_RZ_A1_H */ |