summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
AgeCommit message (Collapse)Author
2006-05-20Put explicit barriers in in-line spl functions.Miod Vallat
2006-05-07Missing license block; from art@Miod Vallat
2006-04-09#ifdef lint wraps for va_startTheo de Raadt
2006-03-19rev 1.86Brad Smith
make the "generic" PCI bus enumeration code the standard case which gets used if nothing else is defined in MD headers, introduce a "PCI_MACHDEP_ENUMERATE_BUS" CPP definition which can be used by MD headers (just 1 port atm) to plug in special code rev 1.62 * Implement a machine-dependent pci_enumerate_bus() for sparc64 which uses OFW device nodes to enumerate the bus. When a PCI bus that is behind a bridge is attached, pci_attach_hook() allocates a new PCI chipset tag for the new bus and sets it's "curnode" to the OFW node of the bridge. This is used as a starting point when enumerating that bus. Root busses get the OFW node of the host bridge (psycho). rev 1.59 Split the code that enumerates the PCI bus and that actually probes for a device into two functions: * pci_probe_device() actually probes/attaches the device specified by the provide pcitag_t. * pci_enumerate_bus() enumerates the bus, and calls pci_probe_device() for each device on the bus. A pci_enumerate_bus_generic() is provided which implements the old method of doing this: If something found at dev0/func0, determine number of functions and probe each one. From NetBSD ok kettenis@ Tested on a good number of amd64/i386/macppc/sparc64 systems
2006-03-19remove unused bdbtofsb(bn) macroMartin Reindl
found by drahn@
2006-03-12Previous fix was half-done, move the wsscreen_list array into the softcMiod Vallat
as well.
2006-03-12When attaching a wsdisplay, the wsscreen_list structure can not be on theMiod Vallat
stack; found the hard way by Stefano <stefano@merlinobbs.net>.
2006-03-12remove splimp.Brad Smith
2006-03-04<sparc64/dev/upavar.h> is unused except for struct upa_reg for autoconf, soMiod Vallat
move it to <machine/autoconf.h>.
2006-02-22Remove unused probeset() function.Miod Vallat
2006-02-22Remove long unused ELF{32,64}_MACHDEP macros.Miod Vallat
2006-01-08Expose struct sigcontext, struct sigstat and struct sigaltstack for XPG4.2Todd C. Miller
2006-01-06Don't redefine SIZE_MAXTodd C. Miller
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2006-01-06Merge machine/ansi.h and machine/types.h into machine/_types.h andTodd C. Miller
rename the types using the __ protected namespace (e.g. __size_t). Idea from FreeBSD.
2005-12-30Remove unused COMPAT_NETBSD32 block and get rid of register{32,64}_tTodd C. Miller
which are now unused. Tested and OK miod@
2005-12-28Remove dead cruft.Miod Vallat
2005-12-18Don't include cdefs.h if _LOCORE is defined and hide some more definesTodd C. Miller
unless __BSD_VISIBLE or _LOCORE are set. OK deraadt@
2005-12-14convert _FOO_SOURCE -> __FOO_VISIBLE in machine. OK deraadt@Todd C. Miller
2005-12-13First step in include files overhaul. Use __FOO_VISIBLE (as definedTodd C. Miller
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
2005-12-12Nuke unused pmap_from_phys_address().Miod Vallat
2005-11-24add lint-specific hacks. at the same time, clean out a lot of ancientTheo de Raadt
cruft for old compilers and environments. there may be a 2nd round of polishing after this; ok miod and others
2005-11-11Remove machdep.booted_kernel sysctl of questionable usefulness.Miod Vallat
ok deraadt@
2005-10-24Mach-macro freeMartin Reindl
2005-09-21isbad() is only used on SMD disks on sparc; remove it on other platforms.Miod Vallat
2005-09-12Change the NKMEMPAGES range to 4-64MB for 32bit arches, and 8-128MB for 64bitMiod Vallat
arches; except on sparc where the range is 4-8 for !sun4m and 4-64 for sun4m, selected at runtime.
2005-09-08make comments match the fact that we are on sun4u, plus minor cleanupMartin Reindl
ok mickey@
2005-09-04remove unused NetBSD pci_intr_evcnt() function.Brad Smith
2005-07-31Get rid of unused SINCR and SSIZE constants.Miod Vallat
2005-07-10remove two unused flagsBrad Smith
2005-07-09Implement _bus_dmamem_mmap instead of just calling panic();Robert Nagy
This is needed by bktr(4). ok mickey@ miod@
2005-06-29some pendantic stuff from henricTheo de Raadt
2005-06-29one PSR_ variable stayed; from henricTheo de Raadt
2005-06-29remove v7/v8 stuff; from henricTheo de Raadt
2005-06-282 more bits of PA in the TLB entries when you get to ultrasparc3; from henricTheo de Raadt
2005-05-31IPL_SCHED should block statclock on architectures where the schedulerArtur Grabowski
is clocked by the statclock. miod@ ok
2005-05-29sched work by niklas and art backed out; causes panicsTheo de Raadt
2005-05-25This patch is mortly art's work and was done *a year* ago. Art wants to thankNiklas Hallqvist
everyone for the prompt review and ok of this work ;-) Yeah, that includes me too, or maybe especially me. I am sorry. Change the sched_lock to a mutex. This fixes, among other things, the infamous "telnet localhost &" problem. The real bug in that case was that the sched_lock which is by design a non-recursive lock, was recursively acquired, and not enough releases made us hold the lock in the idle loop, blocking scheduling on the other processors. Some of the other processors would hold the biglock though, which made it impossible for cpu 0 to enter the kernel... A nice deadlock. Let me just say debugging this for days just to realize that it was all fixed in an old diff noone ever ok'd was somewhat of an anti-climax. This diff also changes splsched to be correct for all our architectures.
2005-04-26Remove unused hooks for periodic pcons polling.Miod Vallat
2005-04-19nothing uses spllowersoftclock() anymoreMichael Shalayeff
2005-04-14internal _BSD_WCTRANS_T_, _BSD_MSTATE_T_, _BSD_WCTYPE_T_ types.Marc Espie
2005-04-11use MD #define to choose stackgap size per-architecture. on sparc, specialTheo de Raadt
case sun4c/sun4 -- because address space is more constrained
2005-03-29sparc64 StackGhost.Mark Kettenis
ok deraadt@
2005-03-15Nuke matchbyname(), which isn't used anymore.Miod Vallat
ok deraadt@
2005-03-09Preliminary support for the floppy drive on Ultrasparcs. Only tested onMiod Vallat
SBus machines so far, although EBus attachment glue is provided but not enabled by default. Also, fdformat(8) does not work correctly yet, although reading and writing is safe; this will hopefully be fixed in the near future. ok deraadt@
2005-03-07Do not bother passing the blanking routine to fbwscons_console_init(),Miod Vallat
as fbwscons_attach() can find it on its own.
2005-01-05PIL_AUD should be lower than PIL_SCHED, otherwise the audio code mayFederico G. Schwindt
leave setrunnable() in a bad state; problem reported by robert@, miod@ ok.
2005-01-04SET_PC_REGS, arches tested between me and miod.Marc Espie
2004-12-02Add pci_decompose_tag() for sparc64.Brad Smith
From NetBSD ok deraadt@
2004-11-29Move the struct wsscreen_descr from a per-driver global to a per-instanceMiod Vallat
field of the sunfb structure. This allows multiple instances of the same driver, but with different resolutions (such as a couple of vigra or a TGX cgsix and a TGX+ cgsix) to use distinct wsscreen_descr structures featuring different resolution information. Doing this allows more wsscreen_descr fiddling inside the sparc* fb api, and results in some code shrinkage (about 4KB on sparc GENERIC).