projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stdio: Correct a build error with driver model
[oweals/u-boot.git]
/
common
/
cmd_tsi148.c
diff --git
a/common/cmd_tsi148.c
b/common/cmd_tsi148.c
index 317ba50fd19503c3ef473b742f2b2ad3a7483aa8..ea96d0ffb0a56d9bcd352fb325e87cdfd8593f73 100644
(file)
--- a/
common/cmd_tsi148.c
+++ b/
common/cmd_tsi148.c
@@
-5,7
+5,7
@@
*
* (C) Copyright 2003 Stefan Roese, stefan.roese@esd-electronics.com
*
*
* (C) Copyright 2003 Stefan Roese, stefan.roese@esd-electronics.com
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
@@
-16,8
+16,8
@@
#include <tsi148.h>
#include <tsi148.h>
-#define PCI_VENDOR PCI_VENDOR_ID_TUNDRA
-#define PCI_DEVICE PCI_DEVICE_ID_TUNDRA_TSI148
+#define
L
PCI_VENDOR PCI_VENDOR_ID_TUNDRA
+#define
L
PCI_DEVICE PCI_DEVICE_ID_TUNDRA_TSI148
typedef struct _TSI148_DEV TSI148_DEV;
typedef struct _TSI148_DEV TSI148_DEV;
@@
-41,7
+41,7
@@
int tsi148_init(void)
pci_dev_t busdevfn;
unsigned int val;
pci_dev_t busdevfn;
unsigned int val;
- busdevfn = pci_find_device(
PCI_VENDOR,
PCI_DEVICE, 0);
+ busdevfn = pci_find_device(
LPCI_VENDOR, L
PCI_DEVICE, 0);
if (busdevfn == -1) {
puts("Tsi148: No Tundra Tsi148 found!\n");
return -1;
if (busdevfn == -1) {
puts("Tsi148: No Tundra Tsi148 found!\n");
return -1;
@@
-68,7
+68,7
@@
int tsi148_init(void)
/* check mapping */
debug("Tsi148: Read via mapping, PCI_ID = %08X\n",
readl(&dev->uregs->pci_id));
/* check mapping */
debug("Tsi148: Read via mapping, PCI_ID = %08X\n",
readl(&dev->uregs->pci_id));
- if (((
PCI_DEVICE << 16) |
PCI_VENDOR) != readl(&dev->uregs->pci_id)) {
+ if (((
LPCI_DEVICE << 16) | L
PCI_VENDOR) != readl(&dev->uregs->pci_id)) {
printf("Tsi148: Cannot read PCI-ID via Mapping: %08x\n",
readl(&dev->uregs->pci_id));
result = -1;
printf("Tsi148: Cannot read PCI-ID via Mapping: %08x\n",
readl(&dev->uregs->pci_id));
result = -1;