home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / bsd / 11835 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  2.2 KB

  1. Path: sparky!uunet!gatech!udel!sbcs.sunysb.edu!stark.UUCP!gene
  2. From: gene@stark.uucp (Gene Stark)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Busmouse and patch00061 (FIX)
  5. Date: 26 Jan 93 08:52:24
  6. Organization: Gene Stark's home system
  7. Lines: 79
  8. Distribution: world
  9. Message-ID: <GENE.93Jan26085224@stark.stark.uucp>
  10. NNTP-Posting-Host: stark.uucp
  11.  
  12. These diffs are for Rick Macklem's 386bsd-busmouse driver, which can be
  13. found at host snowhite.cis.uoguelph.ca.  There are some prior minor fixes it
  14. needed to work with a Microsoft bus mouse.  I posted such fixes a few months
  15. ago, but I don't know if they got incorporated into his sourcs.
  16.  
  17. You MUST apply these diffs if you have installed patch00061 in patchkit-0.2.
  18. DON'T apply them if you didn't install that patch.
  19.  
  20.  
  21. *** /sys/i386/isa/mse.c.pl1    Sun Nov  1 01:13:00 1992
  22. --- /sys/i386/isa/mse.c    Tue Jan 26 07:48:14 1993
  23. ***************
  24. *** 51,57 ****
  25.   struct mse_softc {
  26.       int    sc_flags;
  27.       int    sc_mousetype;
  28. !     struct    proc *sc_selp;
  29.       u_int    sc_port;
  30.       void    (*sc_enablemouse)();
  31.       void    (*sc_disablemouse)();
  32. --- 51,57 ----
  33.   struct mse_softc {
  34.       int    sc_flags;
  35.       int    sc_mousetype;
  36. !     pid_t    sc_selp;
  37.       u_int    sc_port;
  38.       void    (*sc_enablemouse)();
  39.       void    (*sc_disablemouse)();
  40. ***************
  41. *** 289,295 ****
  42.        * Since this is an exclusive open device, any previous proc.
  43.        * pointer is trash now, so we can just assign it.
  44.        */
  45. !     sc->sc_selp = p;
  46.       splx(s);
  47.       return (0);
  48.   }
  49. --- 289,295 ----
  50.        * Since this is an exclusive open device, any previous proc.
  51.        * pointer is trash now, so we can just assign it.
  52.        */
  53. !     sc->sc_selp = p->p_pid;
  54.       splx(s);
  55.       return (0);
  56.   }
  57. ***************
  58. *** 301,307 ****
  59.       int unit;
  60.   {
  61.       register struct mse_softc *sc = &mse_sc[unit];
  62. !     struct proc *p;
  63.   
  64.   #ifdef DEBUG
  65.       static int mse_intrcnt = 0;
  66. --- 301,307 ----
  67.       int unit;
  68.   {
  69.       register struct mse_softc *sc = &mse_sc[unit];
  70. !     pid_t p;
  71.   
  72.   #ifdef DEBUG
  73.       static int mse_intrcnt = 0;
  74. ***************
  75. *** 324,330 ****
  76.           }    
  77.           if (sc->sc_selp) {    
  78.               p = sc->sc_selp;    
  79. !             sc->sc_selp = (struct proc *)0;    
  80.               selwakeup(p, 0);    
  81.           }    
  82.       }
  83. --- 324,330 ----
  84.           }    
  85.           if (sc->sc_selp) {    
  86.               p = sc->sc_selp;    
  87. !             sc->sc_selp = (pid_t)0;    
  88.               selwakeup(p, 0);    
  89.           }    
  90.       }
  91.