Oops, don't forget to fill in *addrp.
This commit is contained in:
parent
0890af5ca8
commit
14df007174
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_bwx_bus_io_chipdep.c,v 1.2 1998/06/06 22:28:16 thorpej Exp $ */
|
||||
/* $NetBSD: pci_bwx_bus_io_chipdep.c,v 1.3 1998/06/07 00:29:29 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -407,6 +407,7 @@ __C(CHIP,_io_alloc)(v, rstart, rend, size, align, boundary, flags,
|
|||
printf("io: allocated 0x%lx to 0x%lx\n", ioaddr, ioaddr + size - 1);
|
||||
#endif
|
||||
|
||||
*addrp = ioaddr;
|
||||
*bshp = ALPHA_PHYS_TO_K0SEG(CHIP_IO_SYS_START(v)) + ioaddr;
|
||||
|
||||
return (0);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* $NetBSD: pci_bwx_bus_mem_chipdep.c,v 1.2 1998/06/06 22:28:16 thorpej Exp $ */
|
||||
/* $NetBSD: pci_bwx_bus_mem_chipdep.c,v 1.3 1998/06/07 00:29:29 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
|
@ -406,6 +406,7 @@ __C(CHIP,_mem_alloc)(v, rstart, rend, size, align, boundary, flags,
|
|||
printf("mem: allocated 0x%lx to 0x%lx\n", memaddr, memaddr + size - 1);
|
||||
#endif
|
||||
|
||||
*addrp = memaddr;
|
||||
*bshp = ALPHA_PHYS_TO_K0SEG(CHIP_MEM_SYS_START(v)) + memaddr;
|
||||
|
||||
return (0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_swiz_bus_io_chipdep.c,v 1.24 1998/06/06 22:44:46 thorpej Exp $ */
|
||||
/* $NetBSD: pci_swiz_bus_io_chipdep.c,v 1.25 1998/06/07 00:29:29 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -501,6 +501,7 @@ __C(CHIP,_io_alloc)(v, rstart, rend, size, align, boundary, flags,
|
|||
printf("io: allocated 0x%lx to 0x%lx\n", ioaddr, ioaddr + size - 1);
|
||||
#endif
|
||||
|
||||
*addrp = ioaddr;
|
||||
__C(CHIP,_io_mapit)(v, ioaddr, bshp);
|
||||
|
||||
return (0);
|
||||
|
|
Loading…
Reference in New Issue