Path: utzoo!attcan!uunet!munnari!otc!metro!ditsyda!evans From: evans@ditsyda.oz (Bruce Evans) Newsgroups: comp.os.minix Subject: Yet another TTY driver, part 4 of 3 Keywords: TTY, RS232 Message-ID: <1039@ditsyda.oz> Date: 11 Jan 89 12:52:19 GMT Organization: CSIRO DIT Sydney, Australia Lines: 61 This contains the file "inportb.s", which I forgot to include with the previous parts. I have made only one change to TTY since the posting. The WAKEUP_TIMEOUT in tty.c made "term" unacceptably jerky on a 386 at 2400 baud, so I reduced it to the minimum of (HZ/60). I calculated that the latency for accessing an extended memory RAM disk on an AT is about 1 millisec (see another posting). This will cause trouble on AT's at and above 9600 baud. The improvements to proc.c etc. to allow PC's to handle 9600 baud will only be posted as part of my 386 protected mode port. While there are no essential dependencies between these, I don't have time to separate them and support all the versions. The 386 binary acts just like an 8088 one unless it detects a 386. #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh 'inportb.s' <<'END_OF_FILE' X| int inportb( int port ); X| reads a byte from the i/o port port and returns it X X .globl _inportb X .text X .even X_inportb: X pop bx X pop dx X dec sp X dec sp X in X subb ah,ah X jmp (bx) | asld only END_OF_FILE if test 195 -ne `wc -c <'inportb.s'`; then echo shar: \"'inportb.s'\" unpacked with wrong size! fi # end of 'inportb.s' fi echo shar: End of shell archive. exit 0 Bruce Evans evans@ditsyda.oz.au -- Bruce Evans evans@ditsyda.oz.au D