[BACK]Return to apm.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / macppc / dev

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/macppc/dev/apm.c between version 1.14.2.4 and 1.14.2.5

version 1.14.2.4, 2008/01/21 09:37:26 version 1.14.2.5, 2008/03/17 09:14:21
Line 194  apmattach(parent, self, aux)
Line 194  apmattach(parent, self, aux)
         sc->event_ptr = 0;          sc->event_ptr = 0;
         sc->event_count = 0;          sc->event_count = 0;
         mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_NONE);          mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_NONE);
           selinit(&sc->sc_rsel);
 }  }
   
 int  int
Line 396  apm_record_event(sc, event_type)
Line 397  apm_record_event(sc, event_type)
         sc->event_ptr %= APM_NEVENTS;          sc->event_ptr %= APM_NEVENTS;
         evp->type = event_type;          evp->type = event_type;
         evp->index = ++apm_evindex;          evp->index = ++apm_evindex;
         selwakeup(&sc->sc_rsel);          selnotify(&sc->sc_rsel, 0, 0);
         return (sc->sc_flags & SCFLAG_OWRITE) ? 0 : 1; /* user may handle */          return (sc->sc_flags & SCFLAG_OWRITE) ? 0 : 1; /* user may handle */
 }  }
 #endif  #endif

Legend:
Removed from v.1.14.2.4  
changed lines
  Added in v.1.14.2.5

CVSweb <webmaster@jp.NetBSD.org>