[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My Lattice diffs



It would seem that two of us have been working on Lattice ports of MiNT!

Brian:  Perhaps we should sort this out so that one of us asks Eric Smith
        to become some sort of `official' Lattice MiNT person?

I have not added the multiple-include protection that Brian produced, as
it is not necessary.  I have just added prototypes where required:

diff -w -c ./bios.c ../lat112/bios.c
*** ./bios.c	Tue Aug 30 17:58:00 1994
--- ../lat112/bios.c	Wed Nov 23 02:11:26 1994
***************
*** 133,138 ****
--- 133,142 ----
  	return -1;
  }
  
+ INLINE static int isonline   P_((struct bios_tty *b));
+ INLINE static int isbrk      P_((struct bios_tty *b));
+ INLINE static void checkbtty P_((struct bios_tty *b, int sig));
+ 
  INLINE static int
  isonline(b)
  	struct bios_tty *b;
diff -w -c ./biosfs.c ../lat112/biosfs.c
*** ./biosfs.c	Tue Aug 30 17:55:34 1994
--- ../lat112/biosfs.c	Wed Nov 23 03:10:50 1994
***************
*** 165,174 ****
  600L, 300L, 200L, 150L, 134L, 110L, 75L, 50L
  };
  
- /* set/reset bits in SCC w5 */
  INLINE static void scc_set5 P_((volatile char *control, int setp,
  	unsigned bits, IOREC_T *iorec));
  
  INLINE static void scc_set5 (control, setp, bits, iorec)
  volatile char *control;
  int setp;
--- 165,179 ----
  600L, 300L, 200L, 150L, 134L, 110L, 75L, 50L
  };
  
  INLINE static void scc_set5 P_((volatile char *control, int setp,
  	unsigned bits, IOREC_T *iorec));
+ static void ARGS_ON_STACK wakewrite P_ ((PROC *p));
+ INLINE static long iocsflagsb P_ ((int bdev, unsigned long flags, 
+ 				   unsigned long mask, 
+ 				   struct tty *tty, 
+ 				   struct bios_tty *t));
  
+ /* set/reset bits in SCC w5 */
  INLINE static void scc_set5 (control, setp, bits, iorec)
  volatile char *control;
  int setp;
***************
*** 215,220 ****
--- 220,228 ----
  long rsvf;
  
  /* try to get a fd for a BIOS tty to pass some ioctls to... */
+ 
+ INLINE static short rsvf_open P_((int bdev));
+ INLINE static long rsvf_close P_((int f));
  
  INLINE static short
  rsvf_open(bdev)
diff -w -c ./dosfile.c ../lat112/dosfile.c
*** ./dosfile.c	Mon Nov 14 23:15:46 1994
--- ../lat112/dosfile.c	Wed Nov 23 02:12:30 1994
***************
*** 10,15 ****
--- 10,17 ----
  
  static long do_dup P_((int,int));
  static void unselectme P_((PROC *));
+ static void ARGS_ON_STACK hangup_done P_((PROC *p, FILEPTR *f));
+ static void ARGS_ON_STACK hangup_b1   P_((PROC *p, FILEPTR *f));
  
  MEMREGION *tofreed;	/* to-be-freed shared text region (set in denyshare) */
  
diff -w -c ./mint.h ../lat112/mint.h
*** ./mint.h	Wed Nov 16 03:00:42 1994
--- ../lat112/mint.h	Wed Nov 23 03:06:18 1994
***************
*** 149,154 ****
--- 149,158 ----
  #endif
  #endif
  
+ #ifdef LATTICE         /* Get headers which bind Flock (osbind) and Fcntl (mintbind) */
+ #include <osbind.h>
+ #include <mintbind.h>
+ #else
  /* Binding for Flock */
  #ifndef __TURBOC__
  #ifndef Flock
***************
*** 160,165 ****
--- 164,170 ----
  #ifndef Fcntl
  extern long gemdos();
  #define Fcntl(f, arg, cmd) gemdos(0x104, (short)(f), (long)(arg), (short)(cmd))
+ #endif
  #endif
  #endif
  
diff -w -c ./proc.c ../lat112/proc.c
*** ./proc.c	Wed Nov 16 02:58:44 1994
--- ../lat112/proc.c	Wed Nov 23 02:13:10 1994
***************
*** 10,15 ****
--- 10,17 ----
  #include "xbra.h"
  
  static void do_wakeup_things P_((int sr, int newslice));
+ INLINE static void do_wake P_((int que, long cond));
+ 
  
  extern short proc_clock;
  
diff -w -c ./timeout.c ../lat112/timeout.c
*** ./timeout.c	Mon Nov 14 21:24:36 1994
--- ../lat112/timeout.c	Sun Nov 20 04:55:24 1994
***************
*** 22,27 ****
--- 22,28 ----
  static TIMEOUT	*newtimeout P_((short));
  static void	disposetimeout P_((TIMEOUT *));
  static void	inserttimeout P_ ((TIMEOUT *, long));
+ static void     dispose_old_timeouts P_ ((void));
  
  #define TIMEOUTS	20	/* # of static timeout structs */
  #define TIMEOUT_USED	0x01	/* timeout struct is in use */