summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev
AgeCommit message (Collapse)Author
2010-12-04Introduce a new pci routine, pci_conf_size(), which returns the size of aMiod Vallat
given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
2010-09-22remove unused offset argument to rbus functionsJonathan Gray
ok krw@ kettenis@
2010-09-20Get rid of evcount's support for arranging counters in a treeMatthew Dempsky
hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
2010-08-07No "\n" needed at the end of panic() strings.Kenneth R Westerback
Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
2010-08-01ANSIfyMark Kettenis
2010-07-02Move common code for waking up writers on a tty into a function.Nicholas Marriott
ok deraadt matthew millert
2010-06-28Allow tty drivers to request larger buffers at attach time using aTheo de Raadt
max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
2010-06-26Allow processes to be scheduled onto secondary CPUs.Joel Sing
ok kettenis@
2010-06-03Rename ci_spinup_stack to ci_stack and use it as the stack for both CPUJoel Sing
spin up and FPU emulation. Since all CPUs need a stack for FPU emulation, move the allocation code to cpuattach(). ok kettenis@
2010-05-24Add missing prototypesTheo de Raadt
ok jsing kettenis
2010-05-21Add support for IPIs on hppa.Joel Sing
ok kettenis@
2010-05-19Spin up secondary CPUs on hppa multiprocessor kernels. At this stage weJoel Sing
enable clock interrupts, however do not allow processes to be scheduled onto the secondary CPUs - hopefully we can change this shortly... ok kettenis@
2010-05-06Ansify functions and use "clock" rather than the CPU name for clockJoel Sing
interrupts. ok kettenis@
2010-04-29Currently pdc_scanbus() scans in reverse, which results in physical CPU0Joel Sing
attaching as cpu1 and physical CPU1 attaching as cpu0. Split the device scan into two parts - the first pass scans forward and attaches memory and CPUs, whilst the second pass scans in reverse attaching the remaining devices, thus preserving current semantics. Found the hard way whilst trying to spin up the secondary CPU on my j6750. ok miod@ kettenis@
2010-04-29Store hardware timer information per CPU.Joel Sing
ok kettenis@
2010-04-27Don't use cast expressions as lvalues; gcc4 complains about them. And gcc3Mark Kettenis
generates smaller code without them. ok miod@
2010-04-20cleanup more confusion regarding user.h before proc.h, or missing proc.hTheo de Raadt
ok tedu
2010-04-12Some of the line disciplines want to check for suser. Better to pass themTed Unangst
a process instead of using curproc. ok deraadt
2010-04-01Avoid null pointer dereference. Pointed out by Nick Hudson; variant on hisMark Kettenis
diff from NetBSD.
2010-04-01Allow for multiple CPUs by moving to an array of cpu_info.Joel Sing
ok kettenis@
2010-03-28Allow a multiprocessor kernel to compile.Joel Sing
ok kettenis@
2010-01-01Map the device registers before using them. We were lucky that some otherMark Kettenis
device already mapped the block that contains our registers, but if we change the probe order, or disable devices we might not end up so lucky. ok jsing@, miod@
2009-12-29Move hppa to a "cpu0 at mainbus0" configuration, rather than knocking CPUsJoel Sing
out in the cpu match function. Whilst here also hardwire the clock to IRQ 31, thus preventing one from building a kernel without hardclock. ok kettenis@ miod@
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
2009-10-31Use suser when possible. Suggested by miod@.Federico G. Schwindt
miod@ deraadt@ ok.
2009-10-31Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()Theo de Raadt
calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
2009-08-22Constify the what/name parameter of pci_intr_establish().Michael Knudsen
Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
2009-07-26Make sure all platforms understand the flags argument of bus_space_map() andMiod Vallat
bus_space_alloc() as a bitmask of flags, and not a boolean controlling cacheability; and make sure the three MI BUS_SPACE_MAP_xxx values documented in the manual page are defined on all platforms as well.
2009-04-14Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.Owain Ainsworth
For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
2009-04-10When deciding whether a sti@pci board is the console, compare all valid BARMiod Vallat
addresses against PAGE0 information, instead than only the BAR mapping sti region #0; on Visualize FXe, PAGE0 will point to another BAR and we would not recognize the display as the console device. Tested on Visualize FX4 (on C240), Visualize EG (on B1000) and Visualize FXe (on B2000).
2009-03-30bzero pci attach argsMark Kettenis
2009-03-08Fix dmesg output for child devices not configured (e.g. lpt on RAMDISK).Miod Vallat
2009-02-08Make sure than cpu_hardclock() never sets a ``next interrupt value'' which hasMiod Vallat
already been hit by the running timer; this happens very often on oosiop-based machines, due to these machines being among the slowest hppa, and oosiop being interrupt greedy. Unfortunately, when this happened, one had to wait for the timer to wrap, which would take up to 128 seconds on the 33MHz machines. Also, invoke hardclock() as many times as necessary if it turns out that we had to delay the interrupt 1/hz seconds to avoid the aforementioned wrap problem. With help from kettenis@; ok kettenis@
2009-02-06Split sti structures into rom-related information and screen-relatedMiod Vallat
information. This is preliminary work to help eventually supporting the dual-head ELK model. Also split the initialization code in several routines, this makes the code easier to read, and makes it easier to release resources upon failure. Finally, don't forget to clear the text planes on non-console displays when initializing.
2009-02-04On systems with viper memory controllers, always print its revision,Miod Vallat
and allow asp interrupts to pass through even if not revision 0. ok kettenis@
2008-08-24Correct eisa i/o ports layout structure, this has probably been brokenMiod Vallat
when switching from gcc 2.95, if not forever.
2008-07-23Do not rely on an <ichc>invisible cast</ichc> to return failure inMiod Vallat
dino_intr_map(); rather than adding the missing cast, make the intent of the code clearer by explicitenly testing for PCI_INTERRUPT_LINE being ff. While there, enable the out-of-extent-range checks in dino_memmap() and dino_memalloc() even if no option DEBUG, but return failure instead of panicing. discussed with and ok kettenis@ marco@
2008-04-27Add gecko(4), a driver for the GeckoBOA BC GSC+ port.Mark Kettenis
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2007-12-29Skip LBC on buswalk. Gets rid of unconfigured "Bus Converter Port" devicesMark Kettenis
on machines like the C360.
2007-12-28Add a few more K-class models to the list of machines that have more devicesMark Kettenis
than PDC tells us about.
2007-12-21Add a hack to discover all devices on (some) K-class servers.Mark Kettenis
2007-10-06Simpliest memset(,0,) -> M_ZERO changes. One (caddr *) cast removal,Kenneth R Westerback
otherwise just adding M_ZERO to malloc() and removing the immediately adjacent memset(,0,).
2007-09-22M_ZERO -> bzero.Kenneth R Westerback
ok art@
2007-09-22replace even more ctob and btoc with ptoa and atop respectively plusMartin Reindl
uvm_extern.h where needed
2007-09-15[fF]uther -> [fF]urther in comments and man page. First one spotted onKenneth R Westerback
tech@ by Jung.
2007-08-28Implement bus_space_vaddr().Mark Kettenis
ok marco@
2007-08-23Look for STI firmware at the additional address given by the firmware. ThisMark Kettenis
removes the need for the hardcoded address for the internal Visualize EG on the B180L, and makes it work on the C180. Tested on a handful of other models too. ok miod@
2007-08-05Add support for Zalon NCR 53C720 FW SCSI.Mark Kettenis
input from mickey and miod@, dok martin@,
2007-07-22Move hppa to __HAVE_TIMECOUNTERS.Mark Kettenis