home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / dev / ldd.h < prev    next >
Text File  |  1993-10-19  |  1KB  |  47 lines

  1. /*    @(#)ldd.h    2.0    03/20/90    (c) 1990 NeXT    
  2.  *
  3.  * ldd.h - kernel prototypes used by loadable device drivers
  4.  *
  5.  * HISTORY
  6.  * 22-May-91    Gregg Kellogg (gk) at NeXT
  7.  *    Split out public interface.
  8.  *
  9.  * 16-Aug-90  Gregg Kellogg (gk) at NeXT
  10.  *    Removed a lot of stuff that's defined in other header files. 
  11.  *    Eventually this file should either go away or contain only imports of
  12.  *    other files.
  13.  *
  14.  * 20-Mar-90    Doug Mitchell at NeXT
  15.  *    Created.
  16.  *
  17.  */
  18.  
  19. #ifndef    _M68K_DEV_LDD_PRIV_
  20. #define _M68K_DEV_LDD_PRIV_
  21.  
  22. #import <kernserv/prototypes.h>
  23. #import <kernserv/kalloc.h>
  24. #ifdef    m68k
  25. #import <bsd/dev/m68k/dma.h>
  26. #endif    m68k
  27. #import <bsd/dev/disk.h>
  28.  
  29. typedef int (*PFI)();
  30.  
  31. extern int physio(int (*strat)(), struct buf *bp, dev_t dev, int rw, 
  32.     unsigned (*mincnt)(), struct uio *uio, int blocksize);
  33.  
  34. extern u_short checksum_16 (u_short *wp, int shorts);
  35. extern int sdchecklabel(struct disk_label *dlp, int blkno);
  36.  
  37. extern int sleep(void *chan, int pri);
  38. extern void wakeup(void *chan);
  39. extern void psignal(struct proc *p, int sig);
  40.  
  41. extern void untimeout(int (*fun)(), void *arg);
  42. extern void timeout(int (*fun)(), void *arg, int time);
  43.  
  44.  
  45. #endif    _M68K_DEV_LDD_PRIV_
  46.  
  47.