Return to elroyvar.h CVS log | Up to [local] / sys / arch / hppa64 / dev |
File: [local] / sys / arch / hppa64 / dev / elroyvar.h (download)
Revision 1.1.1.1 (vendor branch), Tue Mar 4 16:05:59 2008 UTC (16 years, 3 months ago) by nbrk
Import of OpenBSD 4.2 release kernel tree with initial code to support Jornada 720/728, StrongARM 1110-based handheld PC. At this point kernel roots on NFS and boots into vfs_mountroot() and traps. What is supported: - glass console, Jornada framebuffer (jfb) works in 16bpp direct color mode (needs some palette tweaks for non black/white/blue colors, i think) - saic, SA11x0 interrupt controller (needs cleanup) - sacom, SA11x0 UART (supported only as boot console for now) - SA11x0 GPIO controller fully supported (but can't handle multiple interrupt handlers on one gpio pin) - sassp, SSP port on SA11x0 that attaches spibus - Jornada microcontroller (jmcu) to control kbd, battery, etc throught the SPI bus (wskbd attaches on jmcu, but not tested) - tod functions seem work - initial code for SA-1111 (chip companion) : this is TODO Next important steps, i think: - gpio and intc on sa1111 - pcmcia support for sa11x0 (and sa1111 help logic) - REAL root on nfs when we have PCMCIA support (we may use any of supported pccard NICs) - root on wd0! (using already supported PCMCIA-ATA) |
/* $OpenBSD: elroyvar.h,v 1.1 2005/04/01 10:40:47 mickey Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff * All rights reserved. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ struct elroy_softc { struct device sc_dv; int sc_ver; bus_space_tag_t sc_bt; bus_space_handle_t sc_bh; bus_dma_tag_t sc_dmat; volatile struct elroy_regs *sc_regs; bus_addr_t sc_iobase; u_int32_t sc_imr; int sc_nints; struct hppa64_pci_chipset_tag sc_pc; struct hppa64_bus_space_tag sc_iot; struct hppa64_bus_space_tag sc_memt; char sc_memexname[20]; struct extent *sc_memex; struct hppa64_bus_dma_tag sc_dmatag; }; void apic_attach(struct elroy_softc *sc); int apic_intr(void *v); int apic_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp); const char *apic_intr_string(void *v, pci_intr_handle_t ih); void *apic_intr_establish(void *v, pci_intr_handle_t ih, int pri, int (*handler)(void *), void *arg, char *name); void apic_intr_disestablish(void *v, void *cookie); void elroy_write32(volatile u_int32_t *p, u_int32_t v); u_int32_t elroy_read32(volatile u_int32_t *p);