summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
AgeCommit message (Collapse)Author
2008-01-21Fix boot time interrupt storm on mec(4) by disabling DMA when stopping theJoel Sing
interface. Without this we are potentially freeing TX buffers that are in use, plus we leave DMA enabled when rebooting. This leads to an interrupt storm at boot time if we were receiving/transmitting network traffic whilst shutting down. ok miod@. Tested by jasper@.
2008-01-20Clean up comments.Joel Sing
2008-01-06Sync console devices with GENERIC.Miod Vallat
2008-01-06Enable raw keyboard for wscons - prompted by matthieu@. Whilst we're hereJoel Sing
remove entries that are irrelevant and clean up comments/indentation. ok miod@
2008-01-04- remove two entries that'll never be usedJasper Lievisse Adriaanse
ok jsing@ miod@
2007-12-31Enable gbe(4) and mkbc(4) now that we have early console support.Joel Sing
ok miod@
2007-12-31Significantly improve the gbe(4) driver, including:Joel Sing
- Internal restructure to separate code paths. - Add support for early console. This allows for gbe(4) to takeover were the ARCBios leaves off (if we should do so). - Add support for 8bpp and 16bpp colour depths. As a result, we also have support for colourmaps. We now use 8bpp as the default. - Add mmap() support, enabling wsfb to operate correctly. - Correct initial origin problem that occurred occasionally. ok miod@. tested by jasper@.
2007-12-31Move wscons_machdep.c to it's rightful location. This brings OpenBSD/sgiJoel Sing
inline with all other architectures. ok miod@
2007-12-27power(4) can now make use of the DS1687 register definitions header file.Joel Sing
ok jasper@
2007-12-27Clean up the clock MD code. Move all of the DS1687 register definitions toJoel Sing
the appropriate place and remove all of the magic numbers. Whilst we're here fix up some KNF issues. Also, the get/set functions used the wrong control registers, allowing the clock to update during operation. ok miod@, jasper@
2007-12-18move variable declarations where they belongJasper Lievisse Adriaanse
prodded by and ok dlg@
2007-12-18- powerbutton -> power buttonJasper Lievisse Adriaanse
- minor knf nit (suggested by miod@)
2007-12-18add power(4), a driver for the power button found on SGI O2's.Jasper Lievisse Adriaanse
when machdep.kbdreset is set, and the correct interrupt is fired, the machine gets shut down. with help from and ok jsing@, ok miod@
2007-12-18Expose the clock address space so that it can be used outside of clock(4).Joel Sing
ok miod@
2007-12-14Cleanup some comments.Joel Sing
2007-12-14Enable console support for SGI O2 workstations. Switch between the serialJoel Sing
and graphical console based on the selection made in the ARCBIOS. Early attachment of gbe(4) is still required, otherwise we have a working graphical console. ok miod@
2007-12-14Add console/cnattach support to mkbc(4). This allows for early attachmentJoel Sing
of pckbd(4) and provides us with a console keyboard. Tested by jasper@. ok miod@
2007-12-14Have gbe(4) attach as the console if the graphical console is selected viaJoel Sing
ARCBIOS. Tested by jasper@. ok miod@
2007-12-14Store the ARCBIOS ConsoleOut environment variable so that we can refer toJoel Sing
it later on. ok miod@
2007-12-14Allow direct access to the MACE IO memory space. This allows IO devices toJoel Sing
operate prior to the bus space extents being created. ok miod@
2007-12-07Clean up comments - typos, grammatical errors and style(9).Joel Sing
2007-12-06Fix typos/grammatical error in comments.Joel Sing
2007-11-30Unbreak build. Also tested by jasper@.Joel Sing
2007-11-30Define NORMAL_C_NOP everywhere.Miod Vallat
2007-11-29needs at least S definedTheo de Raadt
2007-11-27add rcs idJasper Lievisse Adriaanse
"feel free to do so" jsing@
2007-11-27Initial support for the SGI Graphics Back End (GBE) frame buffer found inJoel Sing
SGI O2 machines. We currently rely on the video hardware being initialised by the ARCS firmware and can only use the initial resolution with a colour depth of 32 bits. This driver is disabled by default. ok miod@
2007-11-27Add BUS_SPACE_MAP_LINEARJoel Sing
ok miod@
2007-11-26few more dribbles of LIBKERN cleanupTheo de Raadt
2007-11-26Fix some style(9) issues.Joel Sing
ok miod@
2007-11-26More LIBKERN bits that go awayTheo de Raadt
2007-11-26Remove libkern.Joel Sing
ok deraadt@
2007-11-25libkern, begone. Move to a new mechanism where config(8)'s "file"Theo de Raadt
directive can select between MI and MD versions of these files. At the same time, adjust the boot programs to pick exactly what they need, instead of the 7 or 8 mechanisms previously used. There will be some fallout from this, but testing it all by myself is a ridiculously slow process; it will be finished in-tree. Various developers were very nice and avoided making fun of me when I was gibbering in the corner..
2007-11-25It helps if you initialise timeouts before you try using them...Joel Sing
ok miod@
2007-11-25Get rid of the kernel 'libcompat' framework, and instead use conf/files toTheo de Raadt
decide which files must be pulled into the kernel. Also conditionalize the pulling of those files based on the COMPAT_* options.
2007-11-13Expose mace_bus_dma_tag and extend the crimebus extent. This allows theJoel Sing
existing bus interfaces to be used to access the GBE hardware found in the SGI O2. ok miod@
2007-11-13Give wscons_machdep.c half a spanking. This allows wsdisplay to compile onJoel Sing
OpenBSD/sgi and prevents it from stealing the console. ok miod@
2007-11-11Add spurious interrupt detection to macebus. This allows for the detectionJoel Sing
of interrupt storms and enables the user to "boot poweroff" from ddb, instead of pulling the powercord. Initial code heavily reworked by miod@ ok miod@
2007-10-31comment fixes.Joel Sing
ok miod@
2007-10-24In cpu_switchto(), load pmap->pm_tlbpid manually, instead of expectingMiod Vallat
pmap_update() to return with this value in v0. A void function. Bwahahaha.
2007-10-22Recognize kernel options specified on the "boot" command line (e.g. boot --c),Miod Vallat
in addition to the OSLoadOptions variable; and do not default to -a -s if it is missing or empty. ok deraadt@ jsing@
2007-10-18Add support for the Moosehead PS/2 controller as found on SGI O2 workstations.Joel Sing
ok miod@ deraadt@
2007-10-18No need to include <machine/pte.h> here.Miod Vallat
2007-10-14registred -> registeredMiod Vallat
2007-10-14Disable timer/compare interrupts on the macebus. This prevents interruptJoel Sing
storms from occurring on IRQ 6. ok miod@
2007-10-13Various typos in comments; Joel SingMiod Vallat
2007-10-10Make context switching much more MI:Artur Grabowski
- Move the functionality of choosing a process from cpu_switch into a much simpler function: cpu_switchto. Instead of having the locore code walk the run queues, let the MI code choose the process we want to run and only implement the context switching itself in MD code. - Let MD context switching run without worrying about spls or locks. - Instead of having the idle loop implemented with special contexts in MD code, implement one idle proc for each cpu. make the idle loop MI with MD hooks. - Change the proc lists from the old style vax queues to TAILQs. - Change the sleep queue from vax queues to TAILQs. This makes wakeup() go from O(n^2) to O(n) there will be some MD fallout, but it will be fixed shortly. There's also a few cleanups to be done after this. deraadt@, kettenis@ ok
2007-10-02Apply (with slight variants) this elimination of bzero() with M_ZERO:Kenneth R Westerback
- if ((mapstore = malloc(mapsize, M_DEVBUF, - (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL) + if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ? + (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL) return (ENOMEM); - bzero(mapstore, mapsize);
2007-07-31typo fixes from joel@ionix.com.auTheo de Raadt
2007-07-30Shuffle the order in which we look for header files, when doingThordur I. Bjornsson
kernel builds locally this doesnt change much but over NFS this cuts about 12% of the build time on my setup (i386). OK miod@, deraadt@.