summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/dev
AgeCommit message (Collapse)Author
2009-10-26Add support for the Octane power button to power(4). Took me a while toMiod Vallat
figure out how the interrupt was routed from xbridge to xheart... (it bypasses the regular `have xbridge send a xio interrupt packet' mechanism)
2009-10-26Better crime/mace interrupt handling; interrupt information is no longerMiod Vallat
specified in the kernel configuration file, but is provided by macebus(4) as part of the child device attachment args, and provide both crime and mace interrupt bitmasks; this allows us to only really enable interrupt sources we care about, and to avoid invoking interrupt handler we don't need to for the few mace interrupts multiplexed at the crime level.
2009-10-16Get serial console speed from prom, and use it instead of hardcoding 9600 bps,Miod Vallat
on all systems but O2 (to catch up soon). Also use the IOC4 MCR register to figure out the IOC4 clock, instead of checking the widget control register, to be consistent with iof(4).
2009-10-13Make iof(4) pass its bus speed to children, this in turn allows com(4) toMiod Vallat
pick the right clock if the PCI bus the I/O board is on degrades to 33MHz.
2009-10-11Make sure com@io[cf] attachment stanzas with locators win over generic com*Miod Vallat
lines. (This is done only to make dmesg look nice)
2009-10-07Attach DS1742 style dsrtc to iof (IOC4) too.Miod Vallat
2009-10-07Small steps towards getting the serial clock correct on IOC4 serial ports.Miod Vallat
2009-09-05Change the wsdisplay_emulops return types from void to int; emulops will nowMiod Vallat
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
2009-08-18Blind partial support for IOC4 chip, found on IO8 and IO9 base I/O boards onMiod Vallat
Origin 350 and Tezro systems. While this chip provides serial ports, an ATAPI interface and a PS/2 keyboard and mouse interface, this code currently only attempts to support the serial ports.
2009-08-10The shutdown hook is no longer required now that we shutdown all interfacesJoel Sing
when rebooting. ok deraadt@ jasper@
2009-07-26Rework ioc children attachment: instead of having ioc build a semi-bogusMiod Vallat
bus_space_handle_t, pass them ioc's own bus_space_handle and bus_space_tag, and have the children use bus_space_subregion() on it.
2009-06-11The MAC multicast filter is set in mec_iff() hence there is need to do thisJoel Sing
when resetting the chip. From Brad.
2009-05-18Cleanup the ioctl and receive filter code for mec(4). This alsoJoel Sing
significantly reduces the number of times the chip gets wacked at boot. From brad, tested by me.
2009-05-16need that include file...Theo de Raadt
2009-05-15Oops, forgot to add this file, part of the dsrtc DS174x changes.Miod Vallat
2009-05-15TOD clock support for IOC3 flavours with DS174x chips (which are rebadgedMiod Vallat
MK48Txx). Entangled with preliminary changes which will hopefully eventually lead to power(4) attaching on IP30 (but not finished yet).
2009-05-08IP30 Dallas clock runs in non-BCD mode, so make sure to check which modeMiod Vallat
the chip is in, and honour it.
2009-04-20Some recent IOC3 do not have Dallas timekeepers, so perform a few more testsMiod Vallat
before deciding to attach dsrtc.
2009-04-19Parse and display the part number and the serial number, instead of falselyMiod Vallat
printing the part number as the serial number.
2009-04-13The start of Origin 200 support. Based on some code contributed by pefo@Miod Vallat
some years ago for KL enumeration, building on the existing XBow support to limit ourselves to a single node for now. This is a work-in-progress; it currently lacks complete interrupt code, as well as PCI resource management. And there are likely bugs creeping inside.
2009-04-13Also match on Uniqueware family 0x91, and correctly report the third byteMiod Vallat
of the Ethernet address.
2009-04-12Interrupt support for IOC3 and its subdevices (currently limited to theMiod Vallat
SuperIO part, the Ethernet part needs a whole driver); kernel now boot single user (or bsd.rd). Joint work with jsing@
2009-02-24Add support for hardware acceleration to gbe(4). This provides an acceleratedJoel Sing
framebuffer for the console on SGI O2 workstations. X is still supported via wsfb(4) by switching back to the unaccelerated linear framebuffer mode. Some hardware details and magic numbers from NetBSD's crmfb(4) driver. ok miod@ jasper@ "Sure, go for it" deraadt@
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-09-17Unbreak com@ioc probing.Joel Sing
ok miod@
2008-09-16- remove some unneeded headersJasper Lievisse Adriaanse
with and ok jsing@
2008-06-14Mask the upper 56 bits of the rx ports when reading them, pckbd_input() willMiod Vallat
rely on this very soon.
2008-05-01Don't forget to bus_space_unmap() after probing for a com chip.Miod Vallat
2008-04-21allow low level audio drivers to specify a default sample format,Jacob Meuser
instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
2008-04-07SGI 1-Wire Number-In-a-Can drivers. These are regular Dallas/Maxim append-onlyMiod Vallat
EEPROM, with knowledge of how SGI formats their contents. They are needed by IOC to figure out the Ethernet address of its Ethernet subdevice (yes, verily).
2008-04-07Simple com@ioc (with interrupt handling disabled until ioc interrupt code isMiod Vallat
written). Joint work with jsing@
2008-04-07Split clock attachment in two parts: a timecounter attachment (at mainbus),Miod Vallat
and a time-of-day chip (wherever it gets found).
2008-04-07Since uncached virtual addresses will depend upon space identifiers on R1xkMiod Vallat
systems, switch to the PHYS_TO_UNCACHED macro to compute proper addresses. Not really necessary for the O2 which does not implement spaces, but can't hurt either.
2008-02-21There's no need to print the IRQ now that we have direct configuration.Joel Sing
Cleanup the interrupt establishment code a little whilst we're here. ok miod@
2008-02-21There's no need to print the IRQ now that we have direct configuration.Joel Sing
Cleanup the interrupt establishment code a little whilst we're here. ok miod@ jasper@
2008-02-20Completely overhault attachment rules on sgi. No more indirect configurationMiod Vallat
inherited from OpenBSD/arc machines with ISA bus; mainbus children match on device name and other hierarchies match on simplified locators. As a bonus, attachment lines in dmesg will now print their locators. ok jsing@
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
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-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-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-11-27add rcs idJasper Lievisse Adriaanse
"feel free to do so" jsing@