/[cebix]/SheepShaver/src/serial.cpp
ViewVC logotype

Diff of /SheepShaver/src/serial.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by cebix, Mon Feb 4 16:58:13 2002 UTC revision 1.2 by gbeauche, Tue May 20 20:30:50 2003 UTC
# Line 32  Line 32 
32  SERDPort *the_serd_port[2];  SERDPort *the_serd_port[2];
33    
34  // Function pointers from imported functions  // Function pointers from imported functions
35  typedef int16 (*iocommandiscomplete_ptr)(uint32, int16);  typedef int16 (*iocic_ptr)(uint32, int16);
36  static iocommandiscomplete_ptr IOCommandIsComplete;  static uint32 iocic_tvect = 0;
37    static inline int16 IOCommandIsComplete(uint32 arg1, int16 arg2)
38    {
39            return (int16)CallMacOS2(iocic_ptr, iocic_tvect, arg1, arg2);
40    }
41    
42    
43  /*  /*
# Line 55  int16 SerialOpen(uint32 pb, uint32 dce) Line 59  int16 SerialOpen(uint32 pb, uint32 dce)
59          D(bug("SerialOpen pb %08lx, dce %08lx\n", pb, dce));          D(bug("SerialOpen pb %08lx, dce %08lx\n", pb, dce));
60    
61          // Get IOCommandIsComplete function          // Get IOCommandIsComplete function
62          IOCommandIsComplete = (iocommandiscomplete_ptr)FindLibSymbol("\021DriverServicesLib", "\023IOCommandIsComplete");          iocic_tvect = (uint32)FindLibSymbol("\021DriverServicesLib", "\023IOCommandIsComplete");
63          D(bug("IOCommandIsComplete TVECT at %08lx\n", (uint32)IOCommandIsComplete));          D(bug("IOCommandIsComplete TVECT at %08lx\n", iocic_tvect));
64          if (IOCommandIsComplete == NULL) {          if (iocic_tvect == 0) {
65                  printf("FATAL: SerialOpen(): Can't find IOCommandIsComplete()\n");                  printf("FATAL: SerialOpen(): Can't find IOCommandIsComplete()\n");
66                  return openErr;                  return openErr;
67          }          }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15