diff options
author | Kevin | 2014-11-15 11:48:36 +0800 |
---|---|---|
committer | Kevin | 2014-11-15 11:48:36 +0800 |
commit | d04075478d378d9e15f3e1abfd14b0bd124077d4 (patch) | |
tree | 733dd964582f388b9e3e367c249946cd32a2851f /cpu/arm920t/wmt/upci.h | |
download | FOSSEE-netbook-uboot-source-d04075478d378d9e15f3e1abfd14b0bd124077d4.tar.gz FOSSEE-netbook-uboot-source-d04075478d378d9e15f3e1abfd14b0bd124077d4.tar.bz2 FOSSEE-netbook-uboot-source-d04075478d378d9e15f3e1abfd14b0bd124077d4.zip |
init commit via android 4.4 uboot
Diffstat (limited to 'cpu/arm920t/wmt/upci.h')
-rwxr-xr-x | cpu/arm920t/wmt/upci.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/cpu/arm920t/wmt/upci.h b/cpu/arm920t/wmt/upci.h new file mode 100755 index 0000000..7eb2e9a --- /dev/null +++ b/cpu/arm920t/wmt/upci.h @@ -0,0 +1,78 @@ +/*++ +Copyright (c) 2010 WonderMedia Technologies, Inc. + +This program is free software: you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free Software +Foundation, either version 2 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU General Public License for more details. You +should have received a copy of the GNU General Public License along with this +program. If not, see http://www.gnu.org/licenses/>. + +WonderMedia Technologies, Inc. +10F, 529, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C. +--*/ + +#ifndef __UPCI_H__ +#define __UPCI_H__ + +#if !defined(__UPCIX_H__) +#include "upcix.h" +#endif + +/*--------------------- Export Definitions -------------------------*/ + +/*--------------------- Export Types ------------------------------*/ + +/*--------------------- Export Macros ------------------------------*/ + +#define PCIvReadConfigB(pvHandle, wBusDevFunId, byRegOffset, pbyData) \ +{ \ + PCIXvReadB(wBusDevFunId, byRegOffset, pbyData); \ +} + +#define PCIvReadConfigW(pvHandle, wBusDevFunId, byRegOffset, pwData) \ +{ \ + PCIXvReadW(wBusDevFunId, byRegOffset, pwData); \ +} + +#define PCIvReadConfigD(pvHandle, wBusDevFunId, byRegOffset, pdwData) \ +{ \ + PCIXvReadD(wBusDevFunId, byRegOffset, pdwData); \ +} + +#define PCIvWriteConfigB(pvHandle, wBusDevFunId, byRegOffset, byData) \ +{ \ + PCIXvWriteB(wBusDevFunId, byRegOffset, byData); \ +} + +#define PCIvWriteConfigW(pvHandle, wBusDevFunId, byRegOffset, wData) \ +{ \ + PCIXvWriteW(wBusDevFunId, byRegOffset, wData); \ +} + +#define PCIvWriteConfigD(pvHandle, wBusDevFunId, byRegOffset, dwData) \ +{ \ + PCIXvWriteD(wBusDevFunId, byRegOffset, dwData); \ +} + +#define PCIvReadConfigManyBytes(pvHandle, wBusDevFunId, byRegOffset, pbyBuffer, byCount) \ +{ \ + PCIXvReadManyBytes(wBusDevFunId, byRegOffset, pbyBuffer, byCount); \ +} + +#define PCIbFindConfigDeviceInfo(dwDevVenID, pbyBusNum, pbySlotNum, pbyFuncNum, pbyRevId, \ + pdwIoBase, pdwIoSpaceRange, pbyIrqNo) \ + (PCIXbFindDeviceInfo(dwDevVenID, pbyBusNum, pbySlotNum, pbyFuncNum, pbyRevId, pdwIoBase, \ + pdwIoSpaceRange, pbyIrqNo)) + +/*--------------------- Export Classes ----------------------------*/ + +/*--------------------- Export Variables --------------------------*/ + +/*--------------------- Export Functions --------------------------*/ + +#endif /* __UPCI_H__ */ |