Temp hacks for QEMU. Call to env_setargs in dpeth.
This commit is contained in:
parent
1c570a7d93
commit
cfd27c36cb
|
@ -120,7 +120,11 @@ struct dpeth *dep;
|
||||||
/* printf("cr = 0x%x\n", pci_attr_r16(devind, PCI_CR)); */
|
/* printf("cr = 0x%x\n", pci_attr_r16(devind, PCI_CR)); */
|
||||||
bar= pci_attr_r32(devind, PCI_BAR) & 0xffffffe0;
|
bar= pci_attr_r32(devind, PCI_BAR) & 0xffffffe0;
|
||||||
if ((bar & 0x3ff) >= 0x100-32 || bar < 0x400)
|
if ((bar & 0x3ff) >= 0x100-32 || bar < 0x400)
|
||||||
panic("", "base address is not properly configured", NO_NUM);
|
{
|
||||||
|
printf("rtl8029: ignoring bad base address 0x%x for QEMU\n",
|
||||||
|
bar);
|
||||||
|
/* panic("", "base address is not properly configured", NO_NUM); */
|
||||||
|
}
|
||||||
dep->de_base_port= bar;
|
dep->de_base_port= bar;
|
||||||
|
|
||||||
ilr= pci_attr_r8(devind, PCI_ILR);
|
ilr= pci_attr_r8(devind, PCI_ILR);
|
||||||
|
|
|
@ -49,6 +49,9 @@
|
||||||
** +------------+---------+---------+---------------+
|
** +------------+---------+---------+---------------+
|
||||||
**
|
**
|
||||||
** $Log$
|
** $Log$
|
||||||
|
** Revision 1.6 2005/08/05 18:37:15 philip
|
||||||
|
** Temp hacks for QEMU. Call to env_setargs in dpeth.
|
||||||
|
**
|
||||||
** Revision 1.5 2005/08/02 15:30:35 jnherder
|
** Revision 1.5 2005/08/02 15:30:35 jnherder
|
||||||
** Various updates to support dynamically starting drivers.
|
** Various updates to support dynamically starting drivers.
|
||||||
** Output during initialization should be suppressed. Unless an error occurs.
|
** Output during initialization should be suppressed. Unless an error occurs.
|
||||||
|
@ -90,7 +93,6 @@
|
||||||
*/
|
*/
|
||||||
extern int errno;
|
extern int errno;
|
||||||
static dpeth_t de_table[DE_PORT_NR];
|
static dpeth_t de_table[DE_PORT_NR];
|
||||||
static int dpeth_tasknr = ANY;
|
|
||||||
|
|
||||||
typedef struct dp_conf { /* Configuration description structure */
|
typedef struct dp_conf { /* Configuration description structure */
|
||||||
port_t dpc_port;
|
port_t dpc_port;
|
||||||
|
@ -567,14 +569,8 @@ PUBLIC int main(int argc, char **argv)
|
||||||
dpeth_t *dep;
|
dpeth_t *dep;
|
||||||
int rc, fkeys, sfkeys;
|
int rc, fkeys, sfkeys;
|
||||||
|
|
||||||
/* Get precess number */
|
env_setargs(argc, argv);
|
||||||
if ((dpeth_tasknr = getprocnr()) < 0)
|
|
||||||
panic(DevName, "getprocnr() failed", errno);
|
|
||||||
#if defined USE_IOPL
|
|
||||||
/* Request direct access to hardware I/O ports */
|
|
||||||
if ((rc = sys_enable_iop(dpeth_tasknr)) != OK)
|
|
||||||
panic(DevName, "sys_enable_iop() failed", rc);
|
|
||||||
#endif
|
|
||||||
/* Request function key for debug dumps */
|
/* Request function key for debug dumps */
|
||||||
fkeys = sfkeys = 0; bit_set(sfkeys, 8);
|
fkeys = sfkeys = 0; bit_set(sfkeys, 8);
|
||||||
if ((fkey_map(&fkeys, &sfkeys)) != OK)
|
if ((fkey_map(&fkeys, &sfkeys)) != OK)
|
||||||
|
|
|
@ -515,7 +515,12 @@ printf("probe_bus(%d)\n", busind);
|
||||||
headt= pci_attr_r8(devind, PCI_HEADT);
|
headt= pci_attr_r8(devind, PCI_HEADT);
|
||||||
sts= pci_attr_rsts(devind);
|
sts= pci_attr_rsts(devind);
|
||||||
if (sts & (PSR_SSE|PSR_RMAS|PSR_RTAS))
|
if (sts & (PSR_SSE|PSR_RMAS|PSR_RTAS))
|
||||||
break;
|
{
|
||||||
|
printf(
|
||||||
|
"pci: ignoring bad value 0x%x in sts for QEMU\n",
|
||||||
|
sts & (PSR_SSE|PSR_RMAS|PSR_RTAS));
|
||||||
|
/* break; */
|
||||||
|
}
|
||||||
if (vid == NO_VID)
|
if (vid == NO_VID)
|
||||||
{
|
{
|
||||||
/* Some bridge implementations do support
|
/* Some bridge implementations do support
|
||||||
|
|
Loading…
Reference in a new issue