Commit graph

2183 commits

Author SHA1 Message Date
ftrvxmtrx a8d97f31f6 etheriwl: move runtime dc calibration block to proper place 2013-02-16 03:28:21 +01:00
ftrvxmtrx d676eaf59a etheriwl: support for Centrino Advanced-N 6205 2013-02-16 02:56:40 +01:00
cinap_lenrek 328a3001b2 troff macros: change unix /usr/lib paths to plan9 /sys/lib and /usr/bin/col -> /bin/col 2013-02-16 23:56:17 +01:00
cinap_lenrek 0ef41a6718 boot(8): manpage correction $objtype vs. $cputype (from /n/sources/patch/boot-cputype-objtype)
boot(8) claims that boot will launch /$objtype/init;
that is incorrect. It launches /$cputype/init (so says
both boot.c and cpurc(8)). That's the more sensible
choice. This patch fixes the man page to resolve the
mismatch.
2013-02-16 23:38:58 +01:00
cinap_lenrek 126d7e6feb etheriwl: avoid leaking blocks when controller breaks 2013-02-15 22:56:54 +01:00
cinap_lenrek 8deac637d7 merge 2013-02-15 22:21:45 +01:00
cinap_lenrek 9bcf45da9a etheriwl: fix bugs, support for Centrino Ultimate-N 6300 2013-02-15 22:20:25 +01:00
ftrvxmtrx e712752229 pci: add intel qm67 pch 2013-02-14 01:04:45 +01:00
ppatience0 6d7bb96b22 merge 2013-02-13 07:37:26 -05:00
ppatience0 0734a0b836 ether8169: support for RTL8111/8168B 2013-02-13 07:12:51 -05:00
cinap_lenrek 3c3808b280 plan9.ini(8): make more clear what firmware file to get for iwl 2013-02-13 11:03:19 +01:00
cinap_lenrek 42fc57d543 plan9.ini(8): document iwl options 2013-02-13 10:57:47 +01:00
cinap_lenrek af3dad5490 nusb/disk: allow 12 and 16 byte raw scsi commands (from erik quanstro) 2013-02-13 10:03:53 +01:00
cinap_lenrek 0243f52bae etheriwl: dont let transmit change back receiver settings when in promisc mode, cleanup 2013-02-13 08:23:54 +01:00
stanley lieber 194094683a fortunes: Monument To Steve Jobs Goes Up In St. Petersburg 2013-02-12 16:43:02 -06:00
cinap_lenrek 78fc90ec86 etheriwl: support for WiFi Link 4965 2013-02-12 14:28:22 +01:00
cinap_lenrek 8d271549cd wifi: filter SNAP ethernet orgcode only 2013-02-11 16:02:16 +01:00
cinap_lenrek 1f6a402c46 wifi: reset status when clearing essid 2013-02-11 02:10:36 +01:00
cinap_lenrek 6e0835f7d8 wifi: clear out ssid in node table entry, cleanup 2013-02-11 02:02:44 +01:00
cinap_lenrek 3376977d06 wifi: actually check if management replies are for us 2013-02-11 01:29:10 +01:00
cinap_lenrek 8f991a3faa create /lib/firmware in rootstub 2013-02-11 00:53:51 +01:00
cinap_lenrek dacc4dc31a merge 2013-02-11 00:11:28 +01:00
cinap_lenrek ffb3ded366 etheriwl: automatic channel scanning, transmission handling, promisc mode
the channel= plan9.ini parameter isnt needed anymore as we now
hop the channels to scan for beacons. the status is also indicated
with the link led :-)

handle all these flags on packet transmission like RTS for big
packets and sending data packets to the AP instead of broadcasting
everything.

properly setup bss hardware node table and filtering. now promisc
mode is only used when requested.

handle deauth message from ap.

increase node table to 32 entries.
2013-02-11 00:09:41 +01:00
ftrvxmtrx 092fd36154 mp.h: fix typo 2013-02-10 20:46:56 +01:00
stanley lieber c2f5d36d7f fix typo 2013-02-09 23:34:15 -06:00
cinap_lenrek 972e4e75ee merge 2013-02-10 05:05:40 +01:00
cinap_lenrek 9ba9b846ee etheriwl: add /lib/firmware to bootfs.paq proto file 2013-02-10 05:04:31 +01:00
cinap_lenrek ccbfdd9e91 wifi: lie a bit more about the supported rates to get into more ap's 2013-02-10 04:55:57 +01:00
stanley lieber 20d2f551c2 add Intel (R) WiFi Link 5100 AGN, vid/did: 8086/4237 2013-02-09 21:54:44 -06:00
cinap_lenrek 97d136fb21 etheriwl: implement 4965 firmware bootstrap (untested) 2013-02-10 01:26:28 +01:00
cinap_lenrek 6ffe4e58b3 etheriwl: check RF-Kill switch on attach 2013-02-10 00:14:17 +01:00
cinap_lenrek 4204572000 etheriwl: fix mistake 2013-02-10 23:38:08 +01:00
cinap_lenrek d5305dc199 exportfs: applying exportfs-chdir patch (from sources)
Fix the behavior of exportfs -r.

Check the return of chdir(srv) to prevent exporting accidentally
the current working directory when the directory specified
with option -r doesn't exist.

Also fix at the same time the missing trailing \n in error
messages printed just before exits().
2013-02-10 23:31:26 +01:00
cinap_lenrek 3a697585f0 etheriwl: work towards supporting other cards than 5300, gather channel information 2013-02-10 23:02:21 +01:00
cinap_lenrek ab6a2eb0b6 etheriwl: fix command queue handling
we have to decrement the queue counter for all tx rings
*including* the command ring 4.

zero the command buffer for the crystal callibration
command.
2013-02-09 19:12:51 +01:00
cinap_lenrek 09a5825832 etheriwl: experimental intel wifi link driver 2013-02-09 03:19:50 +01:00
ppatience0 f1727a6742 ape: fix bug in access() 2013-02-08 18:01:31 -05:00
stanley lieber 79223a0e64 cdproto create /sys/log/www 2013-02-04 16:56:34 -06:00
stanley lieber c877493fb0 add rc-httpd 2013-02-04 16:40:05 -06:00
ftrvxmtrx 0b212ed505 cc/lex: do not crash on -I without arg 2013-02-02 16:54:09 +01:00
cinap_lenrek d41f67c2b9 audio: fix delay control, increase default buffer delay to 40ms
just doing a single sleep isnt enougth, as we get woken
up for every block!
2013-02-01 15:23:38 +01:00
cinap_lenrek 0b268440b9 6l: eleminate NOP X0 instructions (from eriks 6l-nop-x0 patch)
erik found that -N left NOPs in that 6l couldn't ignore.
add Xn to the NOP table.

bonanza; cat > fp.c
#include <u.h>
#include <libc.h>
#include <stdio.h>

void
main(void)
{
        double g;

        g = -0.;

        print("%g\n", g);
        printf("%g\n", g);
        exits("");
}
bonanza; 6c -N -FVTw fp.c
bonanza; 6l -o 6.fp fp.6
main: doasm: notfound from=6f to=34 (939)       NOP     ,X0
main: doasm: notfound from=6f to=34 (939)       NOP     ,X0
main: doasm: notfound from=6f to=34 (939)       NOP     ,X0
2013-02-01 00:15:02 +01:00
cinap_lenrek 029a8087a3 httpd: fix rane requests
we gave wrong content-length in range requests. r->stop - r->start
is wrong because r->stop is the byte offset of the *last* byte, not
the *next* byte after the last.
2013-01-31 22:51:21 +01:00
cinap_lenrek e53ece53ed httpfile: fix range requests
byte ranges use closed intervals (inclusive first
and last byte offsets)
2013-01-31 22:48:56 +01:00
cinap_lenrek 5a93a2a983 usbehci: remove panic() calls from interrupts if stuff isnt ready (spurious interrupts?) 2013-01-31 23:43:04 +01:00
cinap_lenrek a2b83a5aea nusb/kb: increase maximum report descriptor size, non-continuous endpoints (from richard millars usbmouse-endpoint patch)
Another band-aid fix to the usb mouse driver, to cope with a mouse which has
an interrupt endpoint number 3 but no number 1 or 2, and a report descriptor
more than 128 bytes long.
2013-01-30 20:33:28 +01:00
cinap_lenrek 6b4c5380d8 lib9p: defer freeing srv for listensrv()
use the Srv.end callback for freeing the srv and closing the
file descriptor of a connection. this makes sure we wont free
the srv while there are still outstanding requests that would
access the srv when doing the respond() call.
2013-01-30 10:34:57 +01:00
cinap_lenrek 2c62f8dc67 hjfs: fix bogus nodata getbuf() of superblock in createroot() (failed ream race bug)
we used to do getbuf() with nodata flag so it only worked when
we where lucky and got the same in memory block back. this
is uncritical once you have reamed the filesystem, its just
that sometimes ream would fail with "ream successfull, then
hjfs: fsinit: file ./hjfs not found".
2013-01-30 09:38:02 +01:00
cinap_lenrek 8e658df4fe merge 2013-01-30 06:30:07 +01:00
cinap_lenrek 3787f721c1 9p message size too small
various fileservers do not check if the message size is too small
(they subtract IOHDRSZ later from it to calculate iounit) which
can overflow.
2013-01-30 06:28:42 +01:00
cinap_lenrek dbbbff8915 lib9p: defer closing down srv until the last request has been responded, Tversion message size
in multithreaded programs, we have to wait until all outstanding
requests have been responded before closing down the srv.

dont make write errors sysfatal(), only print them. in case if
listensrv() is used we dont want to exit the process in respond()
called by some worker thread.

make sure Tversion is only handled when there are no outstanding
requests and make sure message size is sane.
2013-01-30 06:26:03 +01:00
ppatience0 f0a451d667 Fixed some ircrc bugs. Only the last channel given to the -t flag is set as target. Unknown commands are not sent to the server. Control-D can be used to exit the client. When the connection is lost, an error message is displayed and the client waits for user input before exiting. Manual page updated. 2013-01-29 23:56:29 -05:00
cinap_lenrek bc0e5ffa22 audiohda: fix vid typo 1003 -> 1003 2013-01-29 21:59:34 +01:00
cinap_lenrek bf37280c25 audiohda: add pci id for Intel P55 chipset and ATI HDMI (Radeon HD 8500) 2013-01-29 21:56:02 +01:00
cinap_lenrek 50cf738d69 acpi: remove "cannot get pci bus number for ..." debug prints
on almost all machines, we get tons of these prints for pci busses that
are not physically there but are described in the ACPI namespace. the
reason that we enumerate these is because we do not enumerate _INI and _STA
methods to check if they are present. we just match the information with
the PCI devices we enumerated with our generic pci code. this works fine and
doesnt require aml code to poke arround in pci config space.
2013-01-29 18:24:48 +01:00
mveety 611eedc8d0 removed fakertc device that confused timesync. timesync now fails trying to read it and hints user to get time elsewhere 2013-01-28 17:06:35 -05:00
mveety 73f9e49dbb removed fake rtc device. 2013-01-28 17:00:30 -05:00
cinap_lenrek 245355f719 document tcp445 (CIFS/SMB) listener 2013-01-28 16:41:25 +01:00
cinap_lenrek c1cb685a32 audioac97: fix inverted recgain control, init to zero recgain
some controls are inverted. we reflect this by specifying
negative range in the volume table now and let genaudiovolread()
and genaudiovolwrite() do the conversion.
2013-01-27 17:20:42 +01:00
cinap_lenrek 866ee3ab5d audioac97, audiohda: dont block on close, just pad the last block with zeros 2013-01-27 14:00:42 +01:00
cinap_lenrek 47bb182b5b merge 2013-01-27 13:00:09 +01:00
cinap_lenrek 87325403b0 sam: make scroll wheel work outside scrollbar 2013-01-27 12:57:51 +01:00
ftrvxmtrx bea0aa8472 statusbar: fix garbled percentage output 2013-01-27 11:51:31 +01:00
cinap_lenrek ea0f580909 add arm vfp support to compiler and linker (from sources) 2013-01-26 18:03:45 +01:00
cinap_lenrek bc610a1b1c add raspberry pi kernel (from sources) 2013-01-26 17:33:56 +01:00
cinap_lenrek ea108c8ca6 add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
cinap_lenrek 43e09c468b omap: update omap kernel (from sources)
refactors of the usb ehci code and adds vfp support
2013-01-26 17:32:08 +01:00
cinap_lenrek 44eb643cb2 devuart: export uartenable() 2013-01-26 17:26:28 +01:00
cinap_lenrek 7592fa3e68 kernel: add portable uncached memory allocator (ucalloc) (from sources) 2013-01-26 17:25:23 +01:00
cinap_lenrek 14d663b169 kernel: add portable sd mmc interface (from sources) 2013-01-26 17:06:28 +01:00
cinap_lenrek ae116c9446 libc: update atomic ops and fp code for arm (from sources) 2013-01-26 17:00:38 +01:00
cinap_lenrek 68c5dc8014 nusb/serial: add silabs driver (from sources) 2013-01-25 17:12:15 +01:00
cinap_lenrek 98dd0aebef acme: fix unicode handling for editout (from sources) 2013-01-25 16:45:04 +01:00
cinap_lenrek 180e04ee41 omap: fix breakpoint instruction trap handling (from sources) 2013-01-25 14:48:57 +01:00
cinap_lenrek 358f72266a merge 2013-01-25 14:20:53 +01:00
cinap_lenrek 9888ead042 libventi: handle nil connection in rpc as error instead of crashing (from sources) 2013-01-25 14:19:18 +01:00
cinap_lenrek 0c4d5b8b07 libdraw: fix memory corruption bug in initdisplay() 2013-01-25 14:17:41 +01:00
cinap_lenrek 13dbaaaf70 libc: set malloctag for runestrdup() 2013-01-25 14:15:48 +01:00
cinap_lenrek ea81146c15 jpg: check read count when reading png magic (harmless) 2013-01-25 14:14:31 +01:00
ftrvxmtrx e00c53cf74 tga, file: 15-bit tga images 2013-01-24 22:10:27 +01:00
stanley lieber d1225403d7 cons(3): add /dev/mordor to the list 2013-01-24 11:41:36 -06:00
ftrvxmtrx 8e7a00e143 tga: fix flip/reflect 2013-01-22 17:02:31 +01:00
cinap_lenrek 54b62fe493 arp: fix memory leaks for "flush" and "del" arp ctl messages 2013-01-22 15:26:34 +01:00
cinap_lenrek 1b017b8db4 mount /n/other from /srv/boot instead of /srv/cwfs
this makes sure tcp boot will have ther user /tmp's
the same way as from local cwfs. we used /srv/cwfs
to prevent a deadlock with 9660srv as a root filesystem
which has been fixed now.
2013-01-22 10:41:01 +01:00
cinap_lenrek 69e8a53ffe 9660srv: run 9p service in separate namespace to prevent deadlock
we have to run the 9p service process in its own namespace
otherwise the attach filename might point onto the served
filesystem causing it to deadlock. this happens especially
if 9660srv is used as root filesystem. (cdboot)
2013-01-22 10:35:42 +01:00
cinap_lenrek 361e029541 audioac97: set adc rate
set adc (recording) sample rate the same as playback for now.
make these separate entries later when we reintroduce in/out
attributes to volume controls.
2013-01-21 16:16:59 +01:00
cinap_lenrek c4d7f17916 file: more sanity checking for tga image detection to avoid false positives 2013-01-21 12:01:05 +01:00
cinap_lenrek e18b9f6fd2 tga: fix bad output channel descriptor for grayscale images and -9 flag, revert page work arround 2013-01-21 11:09:47 +01:00
ftrvxmtrx d789b1cc91 merge 2013-01-21 09:17:26 +01:00
ftrvxmtrx 44b337fbdb page: image/tga 2013-01-21 00:07:05 +01:00
ftrvxmtrx 7addee38a9 page: force images to RGB using -3 flag (fixes grey-scale images displaying) 2013-01-21 00:06:36 +01:00
ftrvxmtrx de5fdbc010 file: detect tga images 2013-01-21 01:05:00 +01:00
ftrvxmtrx d5c0fe22e3 readtga: fix b/w, add color-mapped images support 2013-01-20 22:35:03 +01:00
ftrvxmtrx 311a8ef076 totruecolor: support CRGBV images as input 2013-01-20 22:33:12 +01:00
ftrvxmtrx a89aca24b9 readtga: clean-up 2013-01-20 11:27:03 +01:00
stanley lieber 275b5e2fb3 rewrite.direct: rewrite aliases before delivering to local users to avoid re-sending the message 2013-01-18 21:47:49 -06:00
cinap_lenrek 8cafbf3184 audiohda: automatically pick inpin 2013-01-19 02:30:33 +01:00
cinap_lenrek 1f8313acc1 audio: add port/audioif.h dependencies to mkfile 2013-01-19 01:23:34 +01:00
cinap_lenrek e4875c1ae7 audiohda: first attempt on audio recording support for intel hda audio, distinguish mode in audio code 2013-01-19 01:12:39 +01:00
cinap_lenrek ece0b66739 merge 2013-01-18 13:14:50 +01:00
cinap_lenrek 6a0e85ad9c audioac97: audio recording 2013-01-18 13:12:41 +01:00
stanley lieber 509ff2e8fa fortunes: maybe i should ask at #cat-v 2013-01-17 07:59:04 -06:00
cinap_lenrek d5e642d52d webfs: handle multiple WWW-Authenticate headers, fix fmtstrinit() memory leaks 2013-01-17 12:28:19 +01:00
cinap_lenrek e7399181a9 vncv: do flushimage() under display lock, zero ypdate rect 2013-01-16 09:51:15 +01:00
cinap_lenrek f2f2c8687a 6in4: add -o option to make it possible to use different nets for ipv6 and ipv4 interface 2013-01-14 07:09:25 +01:00
cinap_lenrek 33768d90bf Four shall be the number thou shalt count, and the number of the counting shall be four. 2013-01-13 15:38:21 +01:00
cinap_lenrek bad3007bd6 plan9.ini(8): isa uarts 2013-01-13 11:04:24 +01:00
cinap_lenrek 80146b0303 vt: ignore line spacing escape2 2013-01-13 10:32:51 +01:00
cinap_lenrek aa0627162b remove non standard COM3 (eia2) serial port from i8250 uart.
access to non standard serial port COM3 at i/o port 0x200 causes
kernel panic on some machines (Toshiba Sattelite 1415-S115). also,
some machines have gameport at 0x200.

i readded uartisa to the pcf and pccpuf kernel configurations so
one can use plan9.ini to add non standard uarts like:

uart2=type=isa port=0x200 irq=5
2013-01-13 10:23:31 +01:00
cinap_lenrek 63f1fc07eb hjfs: dont mask permission bits for "create" console command 2013-01-13 08:49:31 +01:00
cinap_lenrek 6dc133ad99 webfs: preauth support 2013-01-12 00:16:07 +01:00
cinap_lenrek b6a42aa49c hget(1): fix typo, various cleanups 2013-01-11 10:26:54 +01:00
cinap_lenrek 3007ee80c3 hget(1): document restrictions for name@file with -m flag, fix examples, usage 2013-01-11 10:00:28 +01:00
cinap_lenrek 79189ec262 mk: fix ar padding problems on 64bit (from eriks amd64mkar patch) 2013-01-11 03:16:30 +01:00
cinap_lenrek a426c08ce2 libdraw: gengetwindow() fix mistake
dont zero *winp so the "screen" pointer is preserved.
2013-01-11 23:18:22 +01:00
cinap_lenrek 23b189c2bc libdraw: gengetwindow() resize race
instead of trying to make rio not change the window image too fast
and give the client some time to attach it (which turns out to be
impossible), we acknowledge that there is a race and just retry
the window reattach as long as the winname keeps changing in
gengetwindow().
2013-01-10 22:16:23 +01:00
cinap_lenrek 5f54eaddba merge 2013-01-10 23:12:37 +01:00
cinap_lenrek b4759c2186 still races, reverting... need a better approach. 2013-01-10 23:10:16 +01:00
cinap_lenrek 1cfdab50fa merge 2013-01-09 16:35:07 +01:00
cinap_lenrek 681bcfa968 rio: fix window resize and attach race
if a window gets hidden/unhidden/resized too fast, the client might have no
chance attaching to that image using winname. so we move the window
offscreen instead and delay the freeimage() by doing it in the deletethread().
2013-01-09 16:32:53 +01:00
stanley lieber a0377a174a hjfs(4): update man page 2013-01-09 07:47:49 -06:00
cinap_lenrek 1c69f9c023 vac(1), ec(2), usb(3), hjfs(8): fix source reference 2013-01-09 08:17:09 +01:00
cinap_lenrek 6d6138fbd8 tlssrv(8): fix bad cross reference 2013-01-09 07:55:58 +01:00
cinap_lenrek 60ee15b4e2 audio(1): various cleanups 2013-01-09 07:53:47 +01:00
cinap_lenrek d1665eaf4d add intel 82598 10gb ethernet to pcf and pccpuf configuration, add support for 82599 (from sources) 2013-01-09 06:41:37 +01:00
cinap_lenrek 77438f99c8 devtls: fix hmac buffer size for SHA1 hashes (from erik)
the buffer isn't big enough for SHA1 hashes, which are larger than MD5
hashes.
2013-01-09 06:39:20 +01:00
cinap_lenrek 2de4e31f56 ape: fix getsockname() byte swaped ports (by yarikos)
APE's getsockname() returns port with bytes swapped (on 386).
2013-01-09 06:08:29 +01:00
cinap_lenrek 7295fa71a4 libdraw: fix wrong menusel() calculation for menuhit() (noticable with small fonts)
the text for a menu entry is drawn from:

y = textr.min.y + i*(font->height+Vspacing);

but we calculated the item from:

r = insetrect(textr);
i = (p.y - r.min.y) / (font->height+Vspacing);

the insetrect is wrong.
2013-01-08 03:45:49 +01:00
cinap_lenrek 4041ea394b aux/vga: remove debug prints 2013-01-08 02:05:23 +01:00
cinap_lenrek 960a04bfec aux/vga: add fixbios() for patching bogus vesa bios 2013-01-07 20:59:50 +01:00
cinap_lenrek db581d2fe6 hjfs: disable shutdown when listening on network connections 2013-01-07 04:30:19 +01:00
cinap_lenrek 0c85432359 hjfs: network announce/listen support 2013-01-07 02:13:54 +01:00
cinap_lenrek a5b6143c4c vga: avoid setting vgactl type vesa multiple times 2013-01-06 03:16:07 +01:00
cinap_lenrek 0d5c57a132 vga: dont confuse io bar with mem bar in vgas3 and vgavesa
harmless bug. just make sure we loop over the memory
bars only and skip the io bars.
2013-01-06 23:39:02 +01:00
cinap_lenrek 5ed845f7e9 ndb/dnsdebug: make sure request is initialized (import from sources) 2013-01-05 17:11:46 +01:00
cinap_lenrek 4405530e69 tbl: fix wrong register count calculation (found by erik) 2013-01-05 16:59:56 +01:00
cinap_lenrek 6172dbd996 sdiahci: do port reset on stuck drive on boot 2013-01-04 23:09:16 +01:00
cinap_lenrek 8c81499659 scsi: do only 36 byte inquiry
some devices freeze up with inqiry allocation length
other than 36 bytes. as we do not really care about
the vendor specific part of the inquiry, lets only do
36 byte inquiry for now.
2013-01-03 20:46:25 +01:00
cinap_lenrek 857502c364 nusb(4): document debug flags for usbd 2013-01-03 17:21:33 +01:00
cinap_lenrek 7d8664db07 devmouse: deduplicate some code by using absmousetrack() 2013-01-03 16:05:06 +01:00
cinap_lenrek 34d0aae672 devvga: check if screen is setup before accepting hwgc vgactl 2013-01-03 15:33:51 +01:00
cinap_lenrek da0638914f 5c: fix -0x80000000 comparsion bug 2013-01-02 10:10:29 +01:00
cinap_lenrek bf60c38720 add empty /lib/tftpd directory 2013-01-02 03:54:05 +01:00
cinap_lenrek 2a1b43ad98 vga: make kernel vga drivers more stupid
previously, we had to maintain 3 sets of pci vid/did's:

1) in /lib/vgadb for detection
2) in the userspace driver in aux/vga
3) in the kernel mode driver

this change makes the kernel mode driver more dumb in
the cases where possible. we let userspace do the pci
enumeration and if needed, it can set the pci address
of the vga card. kernel mode drivers can assume to get
the right pci device passed in scr->pci for enable()
and linear() functions and just do very basic sanity
checking before mapping framebuffer and mmio regions.

vgalinearpciid() was removed as userspace is responsible
to pick pci device.

theres a new vgactl message "pcidev" where userspace
can set the bus address. we initialize scr->pci in
vgareset() to the first pci graphics card found. this
should cover cases when an old aux/vga binary is used
that doesnt use the new pcidev message.

userspace drivers will now use the pci device that got
a match from /lib/vgadb and skip ther own enumeration.
this way, vga cards can be made to work by simply adding
an entry in vgadb with no need to modify userspace or
kernelspace drivers. this is not always possible if
the driver derives information from the specific card
model.
2013-01-02 01:19:51 +01:00
cinap_lenrek 0e4fc14f7e upas/marshal: change Inline: to Include: header, interpret even withou -8 flag
after some thought, the file attachment headers Attach: and Include:
(before Inline:) are more like the Subject: line and should be interpreted
every time.
2013-01-01 16:27:01 +01:00
cinap_lenrek be01be80cc upas/marshal: interpret Attach: and Inline: headers only when -8 flag is given 2013-01-01 15:56:36 +01:00
stanley lieber cc3b91ca27 fortunes: I don't want Javascript promises 2012-12-31 19:55:26 -06:00
stanley lieber 55a34e1131 upas/marshal: interpret attach: and inline: lines in body of message 2012-12-31 19:53:59 -06:00
cinap_lenrek 5697e93e65 unicode: use Runeerror 2012-12-31 22:49:29 +01:00
cinap_lenrek b821a76824 ether82563: fix phyerrata() 2012-12-31 21:50:08 +01:00
cinap_lenrek 6cadd03bbe fix utf and rune handling in preparation for 32bit runes 2012-12-31 21:09:46 +01:00
cinap_lenrek 6d99096136 sdiahci: add pci did for 82801fbm (ich6) SATA controller 2012-12-31 03:58:01 +01:00
cinap_lenrek 23b6f7ffcc aan(8): add cpu(1) remark as it also support -p iption 2012-12-30 18:47:32 +01:00
cinap_lenrek 9ea4028246 ether82567: x200 ethernet (thanks ftrvxmtrx)
Apparently i82567m ether (ich9) _has_ flash. Provided patch fixes the ethernet for Thinkpad X200.
2012-12-29 12:02:59 +01:00
cinap_lenrek ec6714f5ed sdahci: fix mistake 2012-12-29 11:27:24 +01:00
cinap_lenrek 470ea46374 libbio: remove breadn.c 2012-12-28 05:32:44 +01:00
cinap_lenrek b7b2fea16f sdahci: get dvd drive to work with x301 2012-12-28 03:54:06 +01:00
cinap_lenrek f9b9cab6a1 sdide: confusion 2012-12-28 03:39:39 +01:00
cinap_lenrek 8f3595e058 nusb/kb: remove mouse acceleration -a flag
mouse acceleration can be done by software in the kernels
devmouse device like:

echo hwaccel off >/dev/mousectl
echo accelerated 5 >/dev/mousectl

it is hard to pass nusb/kb parameters anyway as it is started
from nusbrc in bootfs.paq, so i remove the option.
2012-12-26 22:48:12 +01:00
cinap_lenrek 1c090cd04f sdide: packet io byte count.
instead of setting the packet io byte count to some bullshit
value, use the dlen from the scsi request. limit transfer
byte count to 32k for atapi.
2012-12-26 17:58:15 +01:00
cinap_lenrek 4a4c8218ee devsd: fix possible sdbio() race with inquiry data changing (due to ahci hotplug)
the unit inquiry data might change in case the drive got pulled
with ahci. so keep track if we locked the ctl in a local stack
variable instead of relying on that the inquiry data stays the
same.
2012-12-26 17:53:12 +01:00
cinap_lenrek 7ceff03db3 bio: remove useless Breadn() as it does the same as Bread()
Bread() always reads exactly nbytes of data if it can. only
when it reaches end of file or an error it will return less.
so the Breadn() function that was introduced has been removed.

sorry for the confusion.
2012-12-25 02:45:28 +01:00
cinap_lenrek e7348f8ed2 sdiahci: prevent x301 dvd-ram from hanging machine
matushita dvd-ram on thinkpad x301 hangs on the inquiry command
done from scsiverify(). not sure whats wrong with it, but at least
this makes the machine boot.
2012-12-25 00:22:32 +01:00
cinap_lenrek f379992fcd adiahci: drive onlining, task file error (atapi) handling, missed interrupts, bios handoff, idle, cleanup
wait for the drives to become ready or missing in iaonline()
and iaverify() to prevent nobootprompt= race.

handle task file error status (this can happen for atapi)
under some circumstances and would hang the io if not
handled.

preventively poll interrupts from the checkdrive kproc in
case we loose interrupts (bad via machine).

implement bios handoff procedure.

make sure the port is idle before programming the port dma
regios in configdrive(), do not start command processing
on the port unless phylink has been established.
2012-12-24 18:07:18 +01:00
cinap_lenrek 9b6f0e2b3e cpu(8): option -A before -R
aan announce option -A has to be specified before -R and -O so
reflect this in the manual page.
2012-12-21 21:24:47 +01:00
cinap_lenrek 0ef3bdaaa4 merge 2012-12-21 19:22:58 +01:00
cinap_lenrek 44ac7fe940 6in4: use localmask instead of hardcoded /128 when adding address to interface 2012-12-21 19:18:47 +01:00
Marko Kostić e95c771eb5 Renamed the serbian latin kbmap and changed some minor errors
in it (lj > q, nj > w).
2012-12-21 17:05:31 +01:00
cinap_lenrek 2c1c1e4005 hproxy: fix ipv6 url parsing 2012-12-20 22:15:52 +01:00
cinap_lenrek e2d6bba40d file: detect and unwrap utf-16 encoded text formats 2012-12-20 17:58:26 +01:00
cinap_lenrek db71faf2d7 tcs: dont get confused on odd read count for utf-16 2012-12-20 17:00:08 +01:00
cinap_lenrek 03024cd814 file: fix newline consistency, fix swaped utf-16 le/be 2012-12-20 16:58:56 +01:00
cinap_lenrek 9465269c40 ethervgbe: fix broken rx block handling 2012-12-20 09:44:10 +01:00
cinap_lenrek 7b34e8e759 nusb/kb: use report protocol for mouse
instead of forcing mouse to boot protocol, which often
doesnt work, we set it to report protocol and parse
the hid report descriptor. if thers no such descriptor
we revert to boot protocol.

all mouse packet parsing is done by report parser,
even for boot protocol. also all the work arrounds
for the leadbyte hack (report id?) are removed.

keyboards should not be affected by this change.
2012-12-19 12:09:35 +01:00
cinap_lenrek 30b8fa0eef pci: add southbridge for Viatech VT8235 2012-12-19 00:35:53 +01:00
cinap_lenrek 5d27a5972d pci: add southbridge for intel 82hb65 cougar point pch (thanks ftrvxmtrx) 2012-12-19 00:09:42 +01:00
cinap_lenrek b4c81e2cdc audio/pcmconv: fix mistake 2012-12-17 09:53:36 +01:00
cinap_lenrek 5d78632d41 pci: add Viatech VT8251 south bridge 2012-12-17 07:51:40 +01:00
cinap_lenrek 1fdd311f2f audio/pcmconv: implement stereo -> mono conversion (mixing) 2012-12-14 17:16:50 +01:00
cinap_lenrek 776f3726dd audio/pcmconv: check bits for same format check not just framesz 2012-12-14 09:43:00 +01:00
cinap_lenrek d99e693119 file: report .au files as "sun audio" instead of µlaw 2012-12-14 05:12:07 +01:00
cinap_lenrek 5ceb834f0e audio: replace µlawdec, add big endian and µlaw audio formats to pcmconv, µlaw in wav support
to support µ-law audio embedded in wav and big endian pcm
in sun audio files the µ-law and a-law and big endian integer
decoding was added to pcmconv. sundec now parses the sun
audio header supporting stereo now.
2012-12-14 04:38:45 +01:00
cinap_lenrek d7b7723c96 audio/pcmconv: dithering 2012-12-13 09:39:15 +01:00
cinap_lenrek a8b02eb198 audio/pcmconv: cleanup 2012-12-12 19:04:57 +01:00
cinap_lenrek 985df234d6 audio/pcmconv: implement filter coefficient interpolation, cleanup 2012-12-12 15:46:12 +01:00
cinap_lenrek 2823498ac3 audio/pcmconv: mistake for double to int conversion (thanks ftrvxmtrx) 2012-12-12 12:20:54 +01:00
cinap_lenrek bedfd8f361 audio/pcmconv: check number of input channels 2012-12-11 21:02:14 +01:00
cinap_lenrek 45a5074b10 audio/pcmconv: disable floating point exceptions for data conversion
for the float to integer conversion, disable
exceptions. also clamp the values.

--
cinap
2012-12-11 20:42:33 +01:00
cinap_lenrek 0903d01134 audio: fix broken write() size for mp3dec/oggdec/flacdec
they accidently wrote additional bytes in the stream. this
confused the new audio/pcmconv (now actually checking
if it got complete samples).
2012-12-11 19:55:02 +01:00
cinap_lenrek 3d1f5d4812 audio/pcmconv: implement band limited audio resampler using fir filter
implement the resampler described in the
"Digital Audio Resampling Home Page" paper:

https://ccrma.stanford.edu/~jos/resample/
2012-12-11 16:37:39 +01:00
cinap_lenrek 6182ff7d77 merge 2012-12-11 14:25:02 +01:00
cinap_lenrek 91f72566c6 paqfs: fix wrong block type in readdir() (from sources) 2012-12-11 14:19:04 +01:00
stanley lieber 871419f216 fortunes: _exits("damn"); 2012-12-10 22:06:42 -06:00
cinap_lenrek b1b2a4ac9c 6l: fix wrong opcode for MOVLQZX (import from sources) 2012-12-10 10:53:27 +01:00
cinap_lenrek 3971337d13 nusb: provide language id when reading string descriptors (thanks ftrvxmtrx)
there are devices which do not return a string if used
with invalid language id, so at least try to use the first
one and choose english if failed.

this fixes CDC ethernet for N900
2012-12-10 10:36:53 +01:00
cinap_lenrek 8f0ed00420 audiohda: add support for PCH (Dell E5420) 2012-12-10 10:01:52 +01:00
cinap_lenrek e93d22ef18 awk: fix the fix
be more carefull. have to preserve DONTFREE flag!
2012-12-10 09:19:41 +01:00
cinap_lenrek 6e4554b7d5 awk: prevent split(a[x], a) from freeing a[x]
the freesymtab() call frees the y argument. temporarily mark it
not to be freed.
2012-12-10 07:20:00 +01:00
cinap_lenrek dfd5bca48e audio(1): µlawdec reference 2012-12-08 09:23:05 +01:00
cinap_lenrek 7148847ff0 µlaw audio support (from erik quanstro) 2012-12-08 09:18:44 +01:00