diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-08-06 20:29:48 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-08-06 20:29:48 +0000 |
commit | 661b05146bd865cf7ec539cf7861679c8651e8f3 (patch) | |
tree | 083d78cbfa1dea9af0217b972795eb7f38032bbc /sys/arch/hppa/include/rbus_machdep.h | |
parent | 85625c17032332953caf8174c1bdf13f63fe4df2 (diff) |
support cardbus bridges and a few pcmcia devices i have working
Diffstat (limited to 'sys/arch/hppa/include/rbus_machdep.h')
-rw-r--r-- | sys/arch/hppa/include/rbus_machdep.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sys/arch/hppa/include/rbus_machdep.h b/sys/arch/hppa/include/rbus_machdep.h new file mode 100644 index 00000000000..d980299670d --- /dev/null +++ b/sys/arch/hppa/include/rbus_machdep.h @@ -0,0 +1,43 @@ +/* $OpenBSD: rbus_machdep.h,v 1.1 2004/08/06 20:29:47 mickey Exp $ */ + +/* + * Copyright (c) 2004 Michael Shalayeff + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + */ + +static __inline int +md_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, int flags, bus_space_handle_t *bshp) +{ + if (bshp) + *(bshp) = bpa; + + return (0); +} + +#define md_space_unmap(t,bsh,s,addrp) do { *(addrp) = (bsh); } while (0) + +struct pci_attach_args; + +#define rbus_pccbb_parent_mem(d, p) (*(p)->pa_pc->pc_alloc_parent)((d), (p), 0) +#define rbus_pccbb_parent_io(d, p) (*(p)->pa_pc->pc_alloc_parent)((d), (p), 1) |