From d04075478d378d9e15f3e1abfd14b0bd124077d4 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 11:48:36 +0800 Subject: init commit via android 4.4 uboot --- cpu/arm920t/wmt/upci.h | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100755 cpu/arm920t/wmt/upci.h (limited to 'cpu/arm920t/wmt/upci.h') 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__ */ -- cgit