summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev
AgeCommit message (Collapse)Author
2023-04-21Remove ancient /* ARGSUSED */ lint comments.tsutsui
2023-02-12fix various typos in comments.andvar
2023-01-15TAB/space cleanup.tsutsui
2022-12-03Explicitly include <sys/kernel.h> for hz(9) as man pages says.tsutsui
XXX: it looks sys/param.h r1.615 and later also has extern int hz
2022-12-03Add empty DIOCCACHESYNC ioctl(2) for rd(4).tsutsui
Without this raid(4) always complains on various raidctl(8) ops: > raid0: cache flush[0] to component 0 failed (22) RAID1 configured by raid(4) just works HP-IB disks on hp300.
2022-12-01Misc KNF and cosmetics.tsutsui
2022-11-30Remove more duplicated static function declarations.tsutsui
2022-11-30Use proper RAW_PART macro rather than a magic number.tsutsui
2022-11-30Set disk_geom parameters required by DIOCGPARTINFO in disk_ioctl().tsutsui
With this change raid(4) no longer complains before mountroot: > RAIDframe: can't get disk size for dev rd0 (22) Should be pulled up to netbsd-9.
2022-11-30Remove a duplicated static function declaration.tsutsui
2022-11-30Pass a correct dev_t arg to disk_ioctl().tsutsui
Probably harmless.
2022-11-30Check bounds of each partition by MI bounds_check_with_label(9).tsutsui
The previous implementation was committed in rev 1.26 about 26 years ago and it looks there is no quirk to use the old MD one.
2022-11-30Check bounds of RAW_PART by bounds_check_with_mediasize() as other drivers.tsutsui
With this check, dd(1) without a count value against a raw partition is terminated properly at the end of media. Tested on 425t and HPDisk. Should be pulled up to netbsd-9.
2022-11-30Fix silent bus error panic on 98543A topcat framebuffer on HP320 and HP360.tsutsui
It looks DELAY(100)s before checking cmap_busy in old pre-wscons grf_tc.c http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/hp300/dev/Attic/grf_tc.c?rev=1.42 are actually necessary on 68020 (HP320) and 68030 (HP360) machines, while it works without them on 68040 (HP380). Should be pulled up to netbsd-9.
2022-11-26Misc KNF and cosmetics.tsutsui
No binary change.
2022-11-25Remove unnecessary declarations.tsutsui
2022-11-25Service mode switch should not be treated as an error.tsutsui
Use aprint_normal(9) to avoid confusing dmesg.
2022-11-25Use proper integer types for HP-IB xfer parameters.tsutsui
No visible regression on 425t and HPDisk.
2022-11-23Remove now unused buffer members from softc prepared only for rdreset().tsutsui
2022-11-23Fix "rd(4) at punits not configured on HPDisk are misprobed" problem.tsutsui
- check not only stat value returned by C_QSTAT command against each punit but also desc.d_name returned by C_DESC command because it looks HPDisk responds to commands against punits supported but not-configured punits at 1-3 - prepare rdreset_unit() function to manage reset punit ops during probe without valid softc The stragety is taken from OpenBSD with several modification. Tested on 425t with real 9122D and HPDisk emulating two 7937H drives. Should be pulled up to netbsd-9.
2022-11-21Use common macro for numbers of cylinders and blocks for HP-IB disks.tsutsui
No binary changes.
2022-07-03fix various typos in comments, mainly s/pallete/palette/.andvar
2022-05-23s/boundries/boundaries/, s/itterate/iterate/ and few more typos.andvar
2022-04-10fix various typos in comments and output/log messages.andvar
2021-12-05s/corect/correct/ in comment.msaitoh
2021-09-06fix typos in word "segment" and two additional typos in if_tl.c.andvar
2021-08-07Merge thorpej-cfargs2.thorpej
2021-07-31s/threshhold/thresholdandvar
2021-07-11Add Device and drive info of 2202A, 7908A, 7911A, and 7941A.tsutsui
Geometries and description info are taken from hpdrive.ini.sample in HPDrive. Briefly tested on HPDisk.
2021-07-09Add support of multiple rd(4) disks on all punits for HPDisk.tsutsui
Special thanks to Anders Gustafsson, the author of "HPDisk" (GPIB disk emulator) http://www.dalton.ax/hpdisk/ for providing bare boards and improving firmwares for NetBSD/hp300.
2021-07-05Cleanup duplicated CS/80 indentify structures. From OpenBSD.tsutsui
https://marc.info/?l=openbsd-cvs&m=113227249626888&w=2 > Define the CS/80 identify structure only once and correctly, instead of > duplicating it in every CS/80 driver and using an hardcoded number for > its size. > No functional change. https://marc.info/?l=openbsd-cvs&m=113273001020159&w=2 > Pick HP-IB describe structures changes from main kernel code here as well.
2021-07-05Move attach messages from common rdident() to explicit rdattach().tsutsui
2021-07-05Pull HP-IB probe fixes from OpenBSD/hp300.tsutsui
https://marc.info/?l=openbsd-cvs&m=113217630426615&w=2 > Overhaul the way HP-IB devices are probed. We will now do an exhaustive > probe of the (slave, punit) tuple space, since this is the only way we > can get a dual disk or dual tape enclosure to attach two devices of the > same kind. This allows using multiple rd(4) disk images on the same slave emulated by HPDisk (and probably the real 9122D with dual floppy disk drives). Thanks to Miod Vallat for suggesting this fix.
2021-06-30No need to bother to use aprint_debug(9) inside #ifdef DEBUG block.tsutsui
2021-06-04Consistently use #define<tab> as rdreg.h.tsutsui
2021-05-18Consistently use #define<tab> here.tsutsui
2021-04-24Merge thorpej-cfargs branch:thorpej
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments. Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.) Remove unnecessary or redundant interface attributes where they're not needed. There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles) ...and a sentinel value CFARG_EOL. Add some extra sanity checking to ensure that interface attributes aren't ambiguous. Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
2021-04-15Fix two problems on old topcat(4) framebuffers found on HP332/340.tsutsui
- Fix panic on monochrome framebuffers. They don't have palette registers. The problem was reported from Anders Gustafsson and also Andrew Gillham back in 2013: https://mail-index.netbsd.org/port-hp300/2013/09/27/msg000086.html https://mail-index.netbsd.org/port-hp300/2013/09/28/msg000087.html - Fix incorrect framebuffer width of 98542/98544 framebuffers on HP332. Reported from Andrew Gillham (98542) as above and Chris Hanson (98543): https://mail-index.netbsd.org/port-hp300/2013/09/27/msg000083.html https://mail-index.netbsd.org/port-hp300/2020/05/01/msg000164.html Worth to pullup to netbsd-9.
2021-01-10Print rd(4) capacity and geometry info as sd(4) and wd(4) do.tsutsui
Before: rd0 at hpibbus1 slave 0 punit 0: 7937H rd0: 698 cylinders, 13 heads, 1116102 blocks, 512 bytes/block After: rd0 at hpibbus1 slave 0 punit 0: 7937H rd0: 544 MB, 698 cyl, 13 head, 123 sec, 512 bytes/block x 1116102 blocks
2020-12-29Use C99 designated initializers for struct consdev.tsutsui
2020-12-26Fix a longstanding bug in hilkbd (and dnkbd) console attachment.tsutsui
cn_tab->cn_dev is initialized in wsdisplay_emul_attach() (but not in wsdiaplay_cnattach()) so it cannot be used when hil(4) is attached before wsdisplay(4) is attached. Instead, use exported wsdisplay_cnputc() that is actually set in early wsdisplay_cnattach(). Now we can use ddb and RB_ASKNAME via HIL keyboard console. Should be pulleld up to netbsd-8 and netbsd-9.
2020-12-23Add bitmap access ops support for SGC CRX (A1659-66001) framebuffer.tsutsui
Also modify existing 425e EVRX attachment to use updated MI sti(4) ops more efficiently. The Xorg server and mlterm-wscons (that support wsdisplay bitmap) work fine on SGC hp425t. No particular comments on port-hp300@ and port-hppa@: https://mail-index.netbsd.org/port-hp300/2020/12/19/msg000184.html https://mail-index.netbsd.org/port-hp300/2020/12/20/msg000185.html Special thanks to Miod Vallat again, for contributing the SGC CRX framebuffer with the SGC connector and flexible cable for HP9000/425t. He also contributed DIO-II "Hyperion" monochrome framebuffer and 1 plane grayscale SGC GRX (A1924-66001), and I've confirmed hyper(4) just works even with Xorg server. I will try GRX as the next project.
2020-11-18malloc(9) -> kmem(9)thorpej
2020-09-29s/occurence/occurrence/msaitoh
2020-09-29s/parition/partition/msaitoh
2020-05-04Add bitmap access ops support for EVRX framebuffer on HP9000/425e.tsutsui
8bpp Xorg wsfb server and mlterm-wscons (formerly mlterm-fb) work. No particular comment on port-hp300@ and port-hppa@: https://mail-index.netbsd.org/port-hp300/2020/05/02/msg000170.html Special thanks to Miod Vallat, for his advice about HP-UX implementation and binutils patches to disassemble old HP-UX a.out-hp300hpux binaries (and also contributing his 425e back in 2014).
2019-11-10in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAITchs
and remove code to handle failures that can no longer happen.
2019-05-28s/recieve/receive/msaitoh
2019-05-08Merge isaki-audio2 branch, the overhaul of audio subsystem.isaki
- Interrupt-oriented system rather than thread-oriented. - Improve stability, quality and performance. - Split playback and record cleanly. Improve halfduplex support. - Many bugs are fixed including deadlocks, resource leaks, abuses, etc. - Simplify audio filter mechanism. The encoding/channels/frequency conversions are completely handled in the upper layer. So the hard- ware driver only converts its hardware encoding (if necessary). - audio_hw_if changes: - Obsoletes query_encoding and add query_format instead. - Obsoletes set_params and add set_format instead. - Remove drain, setfd, mappage. - The call sequences are changed. - ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted. - ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced. - cleanup config attributes: au*conv and mulaw. - All hardware drivers should follow it (I've done as much as possible). Some file paths are changed: - dev/audio.c -> dev/audio/audio.c (rewritten) - dev/audiovar.h -> dev/audio/audiovar.h - dev/audio_dai.h -> dev/audio/audio_dai.h - dev/audio_if.h -> dev/audio/audio_if.h - dev/audiobell.c -> dev/audio/audiobell.c - dev/audiobellvar.h -> dev/audio/audiobellvar.h - dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
2018-12-08Clean up initialization of com_regs structure, in preparation forthorpej
some additional changers.