1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Nuke bus_space_mmap(), as it does not exist in FreeBSD.

This commit is contained in:
Olivier Houchard 2004-06-17 17:51:48 +00:00
parent 715a028455
commit 62f1185016
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130644
3 changed files with 0 additions and 21 deletions

View File

@ -75,8 +75,6 @@ struct bus_space mainbus_bs_tag = {
/* get kernel virtual address */
0, /* there is no linear mapping */
NULL,
/* barrier */
nexus_bs_barrier,

View File

@ -117,9 +117,6 @@ struct bus_space {
/* get kernel virtual address */
void * (*bs_vaddr) (void *, bus_space_handle_t);
/* mmap bus space for user */
int (*bs_mmap) (struct cdev *, vm_offset_t, vm_paddr_t *, int);
/* barrier */
void (*bs_barrier) (void *, bus_space_handle_t,
bus_size_t, bus_size_t, int);
@ -257,12 +254,6 @@ struct bus_space {
#define bus_space_vaddr(t, h) \
(*(t)->bs_vaddr)((t)->bs_cookie, (h))
/*
* MMap bus space for a user application.
*/
#define bus_space_mmap(t, a, o, p, f) \
(*(t)->bs_mmap)((t)->bs_cookie, (a), (o), (p), (f))
/*
* Bus barrier operations.
*/

View File

@ -79,9 +79,6 @@ struct bus_space sa11x0_bs_tag = {
/* get kernel virtual address */
sa11x0_bs_vaddr,
/* mmap bus space for userland */
sa11x0_bs_mmap,
/* barrier */
sa11x0_bs_barrier,
@ -224,13 +221,6 @@ sa11x0_bs_subregion(t, bsh, offset, size, nbshp)
return (0);
}
int
sa11x0_bs_mmap(struct cdev *t, vm_offset_t offset, vm_paddr_t *paddr, int nprot)
{
*paddr = offset;
return (0);
}
void *
sa11x0_bs_vaddr(t, bsh)
void *t;