Add an empty bus_space_mmap(9) function as temporary workaround
for MI pci(4) mmap function in sys/dev/pci/pci_usrreq.c.
This commit is contained in:
parent
c1cd0cdec6
commit
f3fa465d5d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.c,v 1.35 2008/06/04 12:41:40 ad Exp $ */
|
||||
/* $NetBSD: bus.c,v 1.36 2009/08/20 11:50:11 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.35 2008/06/04 12:41:40 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.36 2009/08/20 11:50:11 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -117,6 +117,15 @@ bus_space_subregion(bus_space_tag_t t, bus_space_handle_t bsh,
|
|||
return 0;
|
||||
}
|
||||
|
||||
paddr_t
|
||||
bus_space_mmap(bus_space_tag_t t, bus_addr_t addr, off_t off, int prot,
|
||||
int flags)
|
||||
{
|
||||
|
||||
/* XXX not implemented */
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Common function for DMA map creation. May be called by bus-specific
|
||||
* DMA map creation functions.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.22 2008/04/28 20:23:16 martin Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.23 2009/08/20 11:50:11 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -87,6 +87,16 @@ void bus_space_unmap (bus_space_tag_t, bus_space_handle_t, bus_size_t);
|
|||
int bus_space_subregion(bus_space_tag_t t, bus_space_handle_t bsh,
|
||||
bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp);
|
||||
|
||||
/*
|
||||
* paddr_t bus_space_mmap(bus_space_tag_t t,
|
||||
* bus_addr_t addr, off_t offset, int prot, int flags);
|
||||
*
|
||||
* Mmap bus space for a user application.
|
||||
*/
|
||||
|
||||
paddr_t bus_space_mmap(bus_space_tag_t t, bus_addr_t addr, off_t off, int prot,
|
||||
int flags);
|
||||
|
||||
/*
|
||||
* int bus_space_alloc(bus_space_tag_t t, bus_addr_t, rstart,
|
||||
* bus_addr_t rend, bus_size_t size, bus_size_t align,
|
||||
|
|
Loading…
Reference in New Issue