summaryrefslogtreecommitdiff
path: root/sys/arch/vax
AgeCommit message (Collapse)Author
2009-01-25Remove /dev/drum and related code.Miod Vallat
2009-01-11Fix a sed bug in the makefile's depend target.Paul Irofti
What happened was that the output of mkdep was fed to a sed expression that trimmed a bit more than required and also failed to work when attempting to do make depend with pcc. Example: genassym_c.o: /tmp/genassym.whatever ../../../../../sys/param.h \ was changed to: assym.h: \ but what was intended was: assym.h: ../../../../../sys/param.h \ For the pcc -M output things were a bit different and after the make depend the genassym entry would still remain and make would fail. This affected all platforms except amd64 and sgi. Okay miod@.
2008-12-21During early device probes, make sure to iounaccess() address ranges whenMiod Vallat
they are no longer necessary. No good reason to do so but correctness, and then leaving correct mappings after probe might hide bugs.
2008-12-21add option COMPAT_35, needed by COMPAT_VAX1KMiod Vallat
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-11-25Another bunch of TRY_AGAIN_LATER -> NO_CCB when no I/O could be started.Kenneth R Westerback
"looks sane to me" marco@
2008-10-23Move the va_copy define to <sys/stdrag.h> making sure it is uniformalyMark Kettenis
protected by __ISO_C_VISIBLE > 1999. With a little help from miod@. ok miod@
2008-10-22#if INET => #ifdef INETMarco Pfatschbacher
#if INET6 => #ifdef INET6
2008-10-15make random(9) return per-cpu values (by saving the seed in the cpuinfo),Theo de Raadt
which are uniform for the profclock on each cpu in a SMP system (but using a different seed for each cpu). on all cpus, avoid seeding with a value out of the [0, 2^31-1] range (since that is not stable) ok kettenis drahn
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-10Use the MI random() for all cases; no need for a MD version since itTheo de Raadt
has never been performance sensitive. Running on all platforms, discussed with millert and kettenis, ok toby
2008-10-10Add empty cpu_unidle() macros for architectures that currently don't doArtur Grabowski
anything special to prod a cpu to leave the idle loop in signotify. powerpc, i386, amd64 and sparc64 will follow soon so that everyone has the same interface to wake an idling cpu.
2008-10-10Define MAXCPUS on all architectures.Artur Grabowski
For now, sparc64 is arbitrarily set to 256 (only architecture that didn't have a practical limit in the code on the number of cpus).
2008-10-09Implement CPU_INFO_UNIT for everyone, not just MP kernels.Artur Grabowski
ok miod@
2008-10-09Use ether_ioctl().Brad Smith
2008-10-09cosmetic change for ioctl funtions.. move splnet out from variable declaration.Brad Smith
2008-10-08cosmetic change for ioctl funtions.. move splnet out from variable declaration.Brad Smith
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-30Fix various pmap_extract() buglets:Miod Vallat
- for kernel space addresses, check the page number fits in Sysmap before accessing the array. - for user space addresses, return the right (in-page) address bits.
2008-09-22Do not dereference an uninitialized pointer if a rogue, unknown type of boardMiod Vallat
is detected.
2008-08-30replace TRUNC_PAGE by trunc_page and ROUND_PAGE by round_pageMartin Reindl
plus cast to vaddr_t where necassary from Miod's todo list ok miod@
2008-08-30Code refactorization and state structure changes in preparation of asynchronousMiod Vallat
abort commands, needed to eventually support command timeouts for non-polled commands... no functional change.
2008-08-30no need to include uvm/uvm.h twiceMartin Reindl
2008-08-26Stylus pressure sensor is active low, so invert the logic converting itMiod Vallat
to button #5.
2008-08-26When using the not-documented-but-ought-to 'boot sd(...)file' syntax (e.g.Miod Vallat
when mopbooting the bootblocks because one trashed the ones on disk by accident), be sure to use the proper BDEV_SDx rpb device type value, depending on the type of onboard controller. Crank version.
2008-08-24Define a proper wsdisplay type for legss(4).Miod Vallat
2008-08-24vsbus machines also have modem control bits on line #2, no need to fake them.Miod Vallat
2008-08-24Writing to the DTR register on KA60 resets the TCR register behind our back.Miod Vallat
Preserve it explicitely in dzmctl() and restore it after the DTR update. (This problem was a real PITA to track down)
2008-08-24typoMiod Vallat
2008-08-24Correct dmesg, do not mention dz is the console device if running withMiod Vallat
glass console.
2008-08-23Slight speed improvement by using byte accesses on word boundaries for allMiod Vallat
frame buffer memory operations, instead of word access on word boundaries.
2008-08-23Pick the correct host adapter id from nvram.Miod Vallat
2008-08-22Let lkms(4) support VSXXX-AB tablets in addition to the mice it alreadyMiod Vallat
supports, based on appendix C and D of the VCB02 (qdss) technical manual. Also parse the selftest results and report device errors. Not tested on actual tablet due to the lack of any; mouse operation is not disturbed.
2008-08-22Instead of spewing error messages about link status, support link statusTheo de Raadt
like all drivers should ok miod
2008-08-20Minimal driver for the VAXstation 35x0/38x0 LEGSS option, currently limitedMiod Vallat
to 8 bit mode operation, and no color or accelerated features until I can find documentation about it. Speed is decent by VAX standards, except for scrolling, which is so abysmally slow one could see ZZ Top's beards growing while waiting for the screen to scroll...
2008-08-20Do not mask bit 0x80 in dzcngetc() - we run serial consoles in 8N1.Miod Vallat
2008-08-20Don't copy interesting parts of struct scsi_xfer to a read only internalMiod Vallat
ScsiCmd structure. Since we keep a pointer to the scsi_xfer nevertheless, we can get the information from it directly.
2008-08-20Attach led0 on ka60, and display system load on the front panel.Miod Vallat
2008-08-20Oops, previous console changes would initialize serial console on lines 0Miod Vallat
(e.g. on microVAXes) at 4800 bps as if they were keyboard lines.
2008-08-18Forgot to add this file, needing for KA60 support.Miod Vallat
2008-08-18Now that KA60 support is in, include the proper header files instead ofMiod Vallat
harcoding defines, and add rpb device type #39 (sii) boot information.
2008-08-18Add support for the ``Firefox'' VAXstation 3520/3540/3820/3840 workstations,Miod Vallat
currently limited to serial console and a single processor working. All ``on-board'' devices, including the Q-bus adapter, but except for the frame buffer, are supported. The machine will boot over the network or from SCSI devices. Lots of thanks to Al Kossow for www.bitsavers.org, on which I found the technical documentation allowing me to complete this port (which was lacking at the time I got that machine...).
2008-08-18Some uglyness to allow both uba_common.h and ubareg.h to be included;Miod Vallat
temporary until they get merged for good (or split differently).
2008-08-18Increment device interrupt event counter when redispatching an interrupt.Miod Vallat
2008-08-18Preparing for KA60 support, crank IPL_TTY to level 0x16 (since it isMiod Vallat
hardwired this way on KA60...), and compensate in splassert_check() when serial device interrupts will remain at 0x14 or 0x15.
2008-08-18Move common CVAX defines and code (internal cache IPR, SSC layout, machineMiod Vallat
check frame format...) to a single place. Get rid of duplicated KAxx_FOO constants.
2008-08-18Make hardclock() a cpu_dep member. Most machines will use the genericMiod Vallat
hardclock() here, except for KA46 which needs to reset the diagnostic timer. This gives us working clock interrupt counters for vmstat -i in the process.
2008-08-18Shuffle the dz console code (both serial and keyboard) to be more independentMiod Vallat
of the console device attachment, and to be able to work on system where there are more than one dz device of the same type, one of it being the console one. This also allows a different register layout than the dz@ibus one to be used for the dz console device.
2008-08-15Make the DZ_{READ,WRITE}_{BYTE,WORD} macros visible outside of dz.c, forMiod Vallat
other dz attachments to be able to use them (soon).
2008-08-15Fix array index computation in the machine check handler. Gives fatal bus errorsMiod Vallat
a chance to be reported correctly...