home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 24 / develop issue 24 code / new device drivers / PCI Driver Sample / NCR_DriverProject / Src / DriverGestaltHandler.c < prev    next >
MacBinary  |  1995-07-24  |  3.6 KB  |  [TEXT/MPCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Jul 24 17:34:42 1995, modified Mon Jul 24 17:34:42 1995, creator 'MPCC', type ASCII, 3053 bytes "DriverGestaltHandler.c" , at 0xc6d 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 16 44 72 69 76 65 72 | 47 65 73 74 61 6c 74 48 |..Driver|GestaltH|
|00000010| 61 6e 64 6c 65 72 2e 63 | 00 00 00 00 00 00 00 00 |andler.c|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 43 | 43 01 00 00 00 00 00 00 |.TEXTMPC|C.......|
|00000050| 00 00 00 00 00 0b ed 00 | 00 01 9a ac 39 c2 72 ac |........|....9.r.|
|00000060| 39 c2 72 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |9.r.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 27 3c 00 00 |........|....'<..|
|00000080| 2f 2a 09 09 09 09 09 09 | 09 09 09 44 72 69 76 65 |/*......|...Drive|
|00000090| 72 47 65 73 74 61 6c 74 | 48 61 6e 64 6c 65 72 2e |rGestalt|Handler.|
|000000a0| 63 09 09 09 09 09 09 09 | 2a 2f 0d 2f 2a 0d 20 2a |c.......|*/./*. *|
|000000b0| 20 44 72 69 76 65 72 47 | 65 73 74 61 6c 74 48 61 | DriverG|estaltHa|
|000000c0| 6e 64 6c 65 72 2e 63 0d | 20 2a 20 43 6f 70 79 72 |ndler.c.| * Copyr|
|000000d0| 69 67 68 74 20 a9 20 31 | 39 39 34 20 41 70 70 6c |ight . 1|994 Appl|
|000000e0| 65 20 43 6f 6d 70 75 74 | 65 72 20 49 6e 63 2e 20 |e Comput|er Inc. |
|000000f0| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|00000100| 76 65 64 2e 0d 20 2a 0d | 20 2a 2f 0d 2f 2a 09 2e |ved.. *.| */./*..|
|00000110| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000120| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000130| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000140| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000150| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000160| 5f 5f 5f 2e 0d 20 20 09 | 7c 20 54 68 69 73 20 73 |___.. .|| This s|
|00000170| 75 62 72 6f 75 74 69 6e | 65 20 69 73 20 63 61 6c |ubroutin|e is cal|
|00000180| 6c 65 64 20 62 79 20 74 | 68 65 20 44 72 69 76 65 |led by t|he Drive|
|00000190| 72 20 53 74 61 74 75 73 | 20 66 75 6e 63 74 69 6f |r Status| functio|
|000001a0| 6e 20 74 6f 20 68 61 6e | 64 6c 65 20 44 72 69 76 |n to han|dle Driv|
|000001b0| 65 72 20 47 65 73 74 61 | 6c 74 09 7c 0d 09 7c 20 |er Gesta|lt.|..| |
|000001c0| 28 50 42 53 74 61 74 75 | 73 20 63 73 43 6f 64 65 |(PBStatu|s csCode|
|000001d0| 20 34 33 29 20 72 65 71 | 75 65 73 74 73 2e 20 59 | 43) req|uests. Y|
|000001e0| 6f 75 20 63 6f 75 6c 64 | 20 75 73 65 20 74 68 69 |ou could| use thi|
|000001f0| 73 20 61 73 20 61 20 74 | 65 6d 70 6c 61 74 65 2c |s as a t|emplate,|
|00000200| 20 65 78 74 65 6e 64 69 | 6e 67 20 61 6e 64 09 7c | extendi|ng and.||
|00000210| 0d 09 7c 20 6d 6f 64 69 | 66 79 69 6e 67 20 69 74 |..| modi|fying it|
|00000220| 20 66 6f 72 20 79 6f 75 | 72 20 70 61 72 74 69 63 | for you|r partic|
|00000230| 75 6c 61 72 20 6e 65 65 | 64 73 2e 09 09 09 09 09 |ular nee|ds......|
|00000240| 09 09 09 09 09 09 7c 0d | 09 2e 5f 5f 5f 5f 5f 5f |......|.|..______|
|00000250| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000260| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000270| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000280| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000290| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 2e 0d 2a |________|_____..*|
|000002a0| 2f 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 4e 43 52 |/..#incl|ude "NCR|
|000002b0| 44 72 69 76 65 72 50 72 | 69 76 61 74 65 2e 68 22 |DriverPr|ivate.h"|
|000002c0| 0d 0d 2f 2a 0d 20 2a 20 | 43 61 6c 6c 65 64 20 6f |../*. * |Called o|
|000002d0| 6e 20 50 42 53 74 61 74 | 75 73 2c 20 63 73 43 6f |n PBStat|us, csCo|
|000002e0| 64 65 20 3d 20 34 33 0d | 20 2a 2f 0d 4f 53 45 72 |de = 43.| */.OSEr|
|000002f0| 72 0d 44 72 69 76 65 72 | 47 65 73 74 61 6c 74 48 |r.Driver|GestaltH|
|00000300| 61 6e 64 6c 65 72 28 0d | 09 09 72 65 67 69 73 74 |andler(.|..regist|
|00000310| 65 72 20 43 6e 74 72 6c | 50 61 72 61 6d 09 09 2a |er Cntrl|Param..*|
|00000320| 70 62 0d 09 29 0d 7b 0d | 09 09 4f 53 45 72 72 09 |pb..).{.|..OSErr.|
|00000330| 09 09 09 09 73 74 61 74 | 75 73 3b 0d 09 09 55 49 |....stat|us;...UI|
|00000340| 6e 74 33 32 09 09 09 09 | 09 64 65 66 61 75 6c 74 |nt32....|.default|
|00000350| 50 6f 77 65 72 43 6f 6e | 73 75 6d 70 74 69 6f 6e |PowerCon|sumption|
|00000360| 3b 0d 23 64 65 66 69 6e | 65 20 50 42 09 09 28 2a |;.#defin|e PB..(*|
|00000370| 28 28 44 72 69 76 65 72 | 47 65 73 74 61 6c 74 50 |((Driver|GestaltP|
|00000380| 61 72 61 6d 20 2a 29 20 | 70 62 29 29 0d 23 64 65 |aram *) |pb)).#de|
|00000390| 66 69 6e 65 20 4f 50 54 | 49 4f 4e 53 09 28 54 68 |fine OPT|IONS.(Th|
|000003a0| 65 44 72 69 76 65 72 44 | 65 73 63 72 69 70 74 69 |eDriverD|escripti|
|000003b0| 6f 6e 2e 64 72 69 76 65 | 72 4f 53 52 75 6e 74 69 |on.drive|rOSRunti|
|000003c0| 6d 65 49 6e 66 6f 29 0d | 0d 09 09 54 72 61 63 65 |meInfo).|...Trace|
|000003d0| 28 44 72 69 76 65 72 47 | 65 73 74 61 6c 74 48 61 |(DriverG|estaltHa|
|000003e0| 6e 64 6c 65 72 29 3b 0d | 09 09 50 42 2e 64 72 69 |ndler);.|..PB.dri|
|000003f0| 76 65 72 47 65 73 74 61 | 6c 74 52 65 73 70 6f 6e |verGesta|ltRespon|
|00000400| 73 65 20 3d 20 30 3b 0d | 09 09 73 74 61 74 75 73 |se = 0;.|..status|
|00000410| 20 3d 20 6e 6f 45 72 72 | 3b 0d 09 09 73 77 69 74 | = noErr|;...swit|
|00000420| 63 68 20 28 50 42 2e 64 | 72 69 76 65 72 47 65 73 |ch (PB.d|riverGes|
|00000430| 74 61 6c 74 53 65 6c 65 | 63 74 6f 72 29 20 7b 0d |taltSele|ctor) {.|
|00000440| 09 09 63 61 73 65 20 64 | 72 69 76 65 72 47 65 73 |..case d|riverGes|
|00000450| 74 61 6c 74 53 79 6e 63 | 3a 0d 09 09 09 50 42 2e |taltSync|:....PB.|
|00000460| 64 72 69 76 65 72 47 65 | 73 74 61 6c 74 52 65 73 |driverGe|staltRes|
|00000470| 70 6f 6e 73 65 20 3d 20 | 46 41 4c 53 45 3b 09 2f |ponse = |FALSE;./|
|00000480| 2a 20 57 65 20 68 61 6e | 64 6c 65 20 61 73 79 6e |* We han|dle asyn|
|00000490| 63 68 72 6f 6e 6f 75 73 | 20 49 2f 4f 09 09 2a 2f |chronous| I/O..*/|
|000004a0| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 63 61 73 |....brea|k;...cas|
|000004b0| 65 20 64 72 69 76 65 72 | 47 65 73 74 61 6c 74 56 |e driver|GestaltV|
|000004c0| 65 72 73 69 6f 6e 3a 0d | 09 09 09 50 42 2e 64 72 |ersion:.|...PB.dr|
|000004d0| 69 76 65 72 47 65 73 74 | 61 6c 74 52 65 73 70 6f |iverGest|altRespo|
|000004e0| 6e 73 65 20 3d 20 0d 09 | 09 09 09 2a 28 28 6c 6f |nse = ..|...*((lo|
|000004f0| 6e 67 20 2a 29 20 26 54 | 68 65 44 72 69 76 65 72 |ng *) &T|heDriver|
|00000500| 44 65 73 63 72 69 70 74 | 69 6f 6e 2e 64 72 69 76 |Descript|ion.driv|
|00000510| 65 72 54 79 70 65 2e 76 | 65 72 73 69 6f 6e 29 3b |erType.v|ersion);|
|00000520| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 63 61 73 |....brea|k;...cas|
|00000530| 65 20 64 72 69 76 65 72 | 47 65 73 74 61 6c 74 44 |e driver|GestaltD|
|00000540| 65 76 69 63 65 54 79 70 | 65 3a 0d 09 09 09 2f 2a |eviceTyp|e:..../*|
|00000550| 0d 09 09 09 20 2a 20 49 | 20 64 6f 6e 27 74 20 6b |.... * I| don't k|
|00000560| 6e 6f 77 20 74 68 65 20 | 70 72 6f 70 65 72 20 74 |now the |proper t|
|00000570| 79 70 65 20 66 6f 72 20 | 74 68 69 73 20 64 65 76 |ype for |this dev|
|00000580| 69 63 65 20 2d 2d 20 61 | 6c 74 68 6f 75 67 68 20 |ice -- a|lthough |
|00000590| 77 65 20 70 65 72 66 6f | 72 6d 0d 09 09 09 20 2a |we perfo|rm.... *|
|000005a0| 20 53 43 53 49 20 6f 70 | 65 72 61 74 69 6f 6e 73 | SCSI op|erations|
|000005b0| 2c 20 74 68 61 74 20 6d | 69 67 68 74 20 63 6f 6e |, that m|ight con|
|000005c0| 66 75 73 65 20 63 61 6c | 6c 65 72 73 20 77 68 6f |fuse cal|lers who|
|000005d0| 20 77 6f 75 6c 64 20 70 | 72 65 73 75 6d 65 20 74 | would p|resume t|
|000005e0| 68 61 74 0d 09 09 09 20 | 2a 20 74 68 69 73 20 64 |hat.... |* this d|
|000005f0| 72 69 76 65 72 20 69 73 | 20 75 73 65 64 20 62 79 |river is| used by|
|00000600| 20 53 43 53 49 20 4d 61 | 6e 61 67 65 72 20 34 2e | SCSI Ma|nager 4.|
|00000610| 33 2c 20 77 68 69 63 68 | 20 69 73 20 69 6e 63 6f |3, which| is inco|
|00000620| 72 72 65 63 74 2e 0d 09 | 09 09 20 2a 20 49 6e 20 |rrect...|.. * In |
|00000630| 74 68 65 20 6d 65 61 6e | 74 69 6d 65 2c 20 49 27 |the mean|time, I'|
|00000640| 6c 6c 20 75 73 65 20 74 | 68 65 20 63 72 65 61 74 |ll use t|he creat|
|00000650| 6f 72 20 74 79 70 65 20 | 28 77 68 69 63 68 20 69 |or type |(which i|
|00000660| 73 20 61 6c 6c 20 75 70 | 70 65 72 63 61 73 65 29 |s all up|percase)|
|00000670| 2e 0d 09 09 09 20 2a 2f | 0d 09 09 09 50 42 2e 64 |..... */|....PB.d|
|00000680| 72 69 76 65 72 47 65 73 | 74 61 6c 74 52 65 73 70 |riverGes|taltResp|
|00000690| 6f 6e 73 65 20 3d 20 6b | 43 72 65 61 74 6f 72 54 |onse = k|CreatorT|
|000006a0| 79 70 65 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |ype;....|break;..|
|000006b0| 09 63 61 73 65 20 64 72 | 69 76 65 72 47 65 73 74 |.case dr|iverGest|
|000006c0| 61 6c 74 49 6e 74 65 72 | 66 61 63 65 3a 0d 09 09 |altInter|face:...|
|000006d0| 09 50 42 2e 64 72 69 76 | 65 72 47 65 73 74 61 6c |.PB.driv|erGestal|
|000006e0| 74 52 65 73 70 6f 6e 73 | 65 20 3d 20 27 70 63 69 |tRespons|e = 'pci|
|000006f0| 20 27 3b 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 | ';....b|reak;...|
|00000700| 63 61 73 65 20 6b 44 72 | 69 76 65 72 47 65 73 74 |case kDr|iverGest|
|00000710| 61 6c 74 50 6f 77 65 72 | 53 77 69 74 63 68 3a 09 |altPower|Switch:.|
|00000720| 09 2f 2a 20 53 75 70 70 | 6f 72 74 20 50 6f 77 65 |./* Supp|ort Powe|
|00000730| 72 20 75 70 2f 64 6f 77 | 6e 20 73 77 69 74 63 68 |r up/dow|n switch|
|00000740| 69 6e 67 3f 09 09 2a 2f | 0d 09 09 09 50 42 2e 64 |ing?..*/|....PB.d|
|00000750| 72 69 76 65 72 47 65 73 | 74 61 6c 74 52 65 73 70 |riverGes|taltResp|
|00000760| 6f 6e 73 65 20 3d 20 46 | 41 4c 53 45 3b 09 2f 2a |onse = F|ALSE;./*|
|00000770| 20 4e 6f 74 20 73 75 70 | 70 6f 72 74 65 64 20 79 | Not sup|ported y|
|00000780| 65 74 20 09 09 09 09 2a | 2f 0d 09 09 09 62 72 65 |et ....*|/....bre|
|00000790| 61 6b 3b 0d 09 09 63 61 | 73 65 20 6b 44 72 69 76 |ak;...ca|se kDriv|
|000007a0| 65 72 47 65 73 74 61 6c | 74 50 6f 77 65 72 4d 6f |erGestal|tPowerMo|
|000007b0| 64 65 3a 09 09 2f 2a 20 | 54 52 55 45 20 69 66 20 |de:../* |TRUE if |
|000007c0| 69 6e 20 68 69 67 68 2d | 70 6f 77 65 72 20 6d 6f |in high-|power mo|
|000007d0| 64 65 09 09 09 2a 2f 0d | 09 09 09 50 42 2e 64 72 |de...*/.|...PB.dr|
|000007e0| 69 76 65 72 47 65 73 74 | 61 6c 74 52 65 73 70 6f |iverGest|altRespo|
|000007f0| 6e 73 65 20 3d 20 54 52 | 55 45 3b 09 2f 2a 20 50 |nse = TR|UE;./* P|
|00000800| 6f 77 65 72 2d 73 77 69 | 74 63 68 69 6e 67 20 69 |ower-swi|tching i|
|00000810| 73 20 6e 6f 74 20 73 75 | 70 70 6f 72 74 65 64 20 |s not su|pported |
|00000820| 2a 2f 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 63 |*/....br|eak;...c|
|00000830| 61 73 65 20 6b 44 72 69 | 76 65 72 47 65 73 74 61 |ase kDri|verGesta|
|00000840| 6c 74 35 4d 61 78 48 69 | 67 68 50 6f 77 65 72 3a |lt5MaxHi|ghPower:|
|00000850| 09 2f 2a 20 4d 61 78 20 | 35 20 76 6f 6c 74 20 75 |./* Max |5 volt u|
|00000860| 41 6d 70 73 20 69 6e 20 | 68 69 67 68 2d 70 6f 77 |Amps in |high-pow|
|00000870| 65 72 20 6d 6f 64 65 09 | 2a 2f 0d 09 09 09 2f 2a |er mode.|*/..../*|
|00000880| 0d 09 09 09 20 2a 20 52 | 65 73 70 6f 6e 73 65 20 |.... * R|esponse |
|00000890| 69 6e 20 6d 69 63 72 6f | 77 61 74 74 73 20 2d 20 |in micro|watts - |
|000008a0| 49 64 64 20 28 6d 41 6d | 70 29 20 2a 20 56 64 64 |Idd (mAm|p) * Vdd|
|000008b0| 20 28 56 6f 6c 74 73 29 | 20 2a 20 31 30 30 30 20 | (Volts)| * 1000 |
|000008c0| 66 72 6f 6d 20 68 61 6e | 64 62 6f 6f 6b 0d 09 09 |from han|dbook...|
|000008d0| 09 20 2a 2f 0d 09 09 09 | 64 65 66 61 75 6c 74 50 |. */....|defaultP|
|000008e0| 6f 77 65 72 43 6f 6e 73 | 75 6d 70 74 69 6f 6e 20 |owerCons|umption |
|000008f0| 3d 20 28 31 33 30 4c 20 | 2a 20 31 30 30 30 4c 20 |= (130L |* 1000L |
|00000900| 2a 20 35 4c 29 3b 0d 09 | 09 09 67 6f 74 6f 20 64 |* 5L);..|..goto d|
|00000910| 72 69 76 65 72 50 6f 77 | 65 72 43 6f 6d 6d 6f 6e |riverPow|erCommon|
|00000920| 3b 0d 09 09 63 61 73 65 | 20 6b 44 72 69 76 65 72 |;...case| kDriver|
|00000930| 47 65 73 74 61 6c 74 35 | 4d 61 78 4c 6f 77 50 6f |Gestalt5|MaxLowPo|
|00000940| 77 65 72 3a 09 2f 2a 20 | 4d 61 78 20 35 20 76 6f |wer:./* |Max 5 vo|
|00000950| 6c 74 20 75 41 6d 70 73 | 20 69 6e 20 6c 6f 77 2d |lt uAmps| in low-|
|00000960| 70 6f 77 65 72 20 6d 6f | 64 65 09 2a 2f 0d 09 09 |power mo|de.*/...|
|00000970| 09 2f 2a 0d 09 09 09 20 | 2a 20 52 65 73 70 6f 6e |./*.... |* Respon|
|00000980| 73 65 20 69 6e 20 6d 69 | 63 72 6f 77 61 74 74 73 |se in mi|crowatts|
|00000990| 20 2d 20 49 64 64 20 28 | 6d 41 6d 70 29 20 2a 20 | - Idd (|mAmp) * |
|000009a0| 56 64 64 20 28 56 6f 6c | 74 73 29 20 2a 20 31 30 |Vdd (Vol|ts) * 10|
|000009b0| 30 30 20 66 72 6f 6d 20 | 68 61 6e 64 62 6f 6f 6b |00 from |handbook|
|000009c0| 0d 09 09 09 20 2a 2f 0d | 09 09 09 64 65 66 61 75 |.... */.|...defau|
|000009d0| 6c 74 50 6f 77 65 72 43 | 6f 6e 73 75 6d 70 74 69 |ltPowerC|onsumpti|
|000009e0| 6f 6e 20 3d 20 28 31 4c | 20 2a 20 31 30 30 30 4c |on = (1L| * 1000L|
|000009f0| 20 2a 20 35 4c 29 3b 0d | 09 09 09 67 6f 74 6f 20 | * 5L);.|...goto |
|00000a00| 64 72 69 76 65 72 50 6f | 77 65 72 43 6f 6d 6d 6f |driverPo|werCommo|
|00000a10| 6e 3b 0d 09 09 63 61 73 | 65 20 6b 44 72 69 76 65 |n;...cas|e kDrive|
|00000a20| 72 47 65 73 74 61 6c 74 | 33 4d 61 78 48 69 67 68 |rGestalt|3MaxHigh|
|00000a30| 50 6f 77 65 72 3a 09 2f | 2a 20 4d 61 78 20 33 20 |Power:./|* Max 3 |
|00000a40| 76 6f 6c 74 20 75 41 6d | 70 73 20 69 6e 20 68 69 |volt uAm|ps in hi|
|00000a50| 67 68 2d 70 6f 77 65 72 | 20 6d 6f 64 65 09 2a 2f |gh-power| mode.*/|
|00000a60| 0d 09 09 09 64 65 66 61 | 75 6c 74 50 6f 77 65 72 |....defa|ultPower|
|00000a70| 43 6f 6e 73 75 6d 70 74 | 69 6f 6e 20 3d 20 30 3b |Consumpt|ion = 0;|
|00000a80| 0d 09 09 09 67 6f 74 6f | 20 64 72 69 76 65 72 50 |....goto| driverP|
|00000a90| 6f 77 65 72 43 6f 6d 6d | 6f 6e 3b 0d 09 09 63 61 |owerComm|on;...ca|
|00000aa0| 73 65 20 6b 44 72 69 76 | 65 72 47 65 73 74 61 6c |se kDriv|erGestal|
|00000ab0| 74 33 4d 61 78 4c 6f 77 | 50 6f 77 65 72 3a 09 2f |t3MaxLow|Power:./|
|00000ac0| 2a 20 4d 61 78 20 33 20 | 76 6f 6c 74 20 75 41 6d |* Max 3 |volt uAm|
|00000ad0| 70 73 20 69 6e 20 6c 6f | 77 2d 70 6f 77 65 72 20 |ps in lo|w-power |
|00000ae0| 6d 6f 64 65 09 2a 2f 0d | 09 09 09 64 65 66 61 75 |mode.*/.|...defau|
|00000af0| 6c 74 50 6f 77 65 72 43 | 6f 6e 73 75 6d 70 74 69 |ltPowerC|onsumpti|
|00000b00| 6f 6e 20 3d 20 30 3b 0d | 09 09 09 67 6f 74 6f 20 |on = 0;.|...goto |
|00000b10| 64 72 69 76 65 72 50 6f | 77 65 72 43 6f 6d 6d 6f |driverPo|werCommo|
|00000b20| 6e 3b 0d 64 72 69 76 65 | 72 50 6f 77 65 72 43 6f |n;.drive|rPowerCo|
|00000b30| 6d 6d 6f 6e 3a 0d 09 09 | 09 50 42 2e 64 72 69 76 |mmon:...|.PB.driv|
|00000b40| 65 72 47 65 73 74 61 6c | 74 52 65 73 70 6f 6e 73 |erGestal|tRespons|
|00000b50| 65 20 3d 20 47 65 74 44 | 65 76 69 63 65 50 6f 77 |e = GetD|evicePow|
|00000b60| 65 72 43 6f 6e 73 75 6d | 70 74 69 6f 6e 28 0d 09 |erConsum|ption(..|
|00000b70| 09 09 09 09 09 26 47 4c | 4f 42 41 4c 2e 64 65 76 |.....&GL|OBAL.dev|
|00000b80| 69 63 65 45 6e 74 72 79 | 2c 0d 09 09 09 09 09 09 |iceEntry|,.......|
|00000b90| 50 42 2e 64 72 69 76 65 | 72 47 65 73 74 61 6c 74 |PB.drive|rGestalt|
|00000ba0| 53 65 6c 65 63 74 6f 72 | 2c 0d 09 09 09 09 09 09 |Selector|,.......|
|00000bb0| 64 65 66 61 75 6c 74 50 | 6f 77 65 72 43 6f 6e 73 |defaultP|owerCons|
|00000bc0| 75 6d 70 74 69 6f 6e 0d | 09 09 09 09 09 29 3b 0d |umption.|.....);.|
|00000bd0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 64 65 66 61 |...break|;...defa|
|00000be0| 75 6c 74 3a 0d 09 09 09 | 4c 6f 67 48 65 78 28 50 |ult:....|LogHex(P|
|00000bf0| 42 2e 64 72 69 76 65 72 | 47 65 73 74 61 6c 74 53 |B.driver|GestaltS|
|00000c00| 65 6c 65 63 74 6f 72 2c | 20 22 5c 70 55 6e 6b 6e |elector,| "\pUnkn|
|00000c10| 6f 77 6e 20 64 72 69 76 | 65 72 20 67 65 73 74 61 |own driv|er gesta|
|00000c20| 6c 74 22 29 3b 0d 09 09 | 09 73 74 61 74 75 73 20 |lt");...|.status |
|00000c30| 3d 20 73 74 61 74 75 73 | 45 72 72 3b 09 09 09 0d |= status|Err;....|
|00000c40| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 7d 0d 09 09 |...break|;...}...|
|00000c50| 72 65 74 75 72 6e 20 28 | 73 74 61 74 75 73 29 3b |return (|status);|
|00000c60| 0d 23 75 6e 64 65 66 20 | 50 42 0d 7d 0d 00 00 00 |.#undef |PB.}....|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000c90| 6f 63 6b 2e 20 54 68 65 | 20 41 75 64 69 74 20 52 |ock. The| Audit R|
|00000ca0| 65 63 6f 72 64 20 6e 65 | 76 65 72 20 6d 6f 76 65 |ecord ne|ver move|
|00000cb0| 16 44 72 69 76 65 72 47 | 65 73 74 61 6c 74 48 61 |.DriverG|estaltHa|
|00000cc0| 6e 64 6c 65 72 2e 63 73 | 02 00 00 00 54 45 58 54 |ndler.cs|....TEXT|
|00000cd0| 00 00 54 45 58 54 4d 50 | 43 43 01 00 00 f0 00 00 |..TEXTMP|CC......|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 ab 87 97 69 00 00 | 0b ed 00 00 01 9a 74 20 |.....i..|......t |
|00000d00| 73 65 6c 65 63 74 6f 72 | 2c 0d 20 2a 20 69 74 20 |selector|,. * it |
|00000d10| 70 65 72 73 69 73 74 73 | 20 69 6e 20 69 74 73 20 |persists| in its |
|00000d20| 63 75 72 72 65 6e 74 20 | 66 6f 72 6d 20 75 6e 74 |current |form unt|
|00000d30| 69 6c 20 74 68 65 20 63 | 6f 6d 70 75 74 65 72 20 |il the c|omputer |
|00000d40| 69 73 20 72 65 2d 62 6f | 6f 74 65 64 2e 0d 20 2a |is re-bo|oted.. *|
|00000d50| 0d 20 2a 20 54 68 65 20 | 64 69 73 70 6c 61 79 20 |. * The |display |
|00000d60| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 70 72 6f 63 |applicat|ion proc|
|00000d70| 65 73 73 65 73 20 6c 6f | 67 20 65 6e 74 72 69 65 |esses lo|g entrie|
|00000d80| 00 00 00 48 00 0a 43 6f | 75 72 69 65 72 00 00 00 |...H..Co|urier...|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 03 | 00 04 00 58 00 04 02 74 |........|...X...t|
|00000db0| 02 9a 00 58 00 04 02 74 | 02 9a ab 91 d1 c3 00 00 |...X...t|........|
|00000dc0| 03 67 00 00 03 67 00 00 | 06 2f 00 00 00 00 00 04 |.g...g..|./......|
|00000dd0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000de0| 00 00 00 46 00 82 3b 14 | 1f f4 00 00 00 1c 00 46 |...F..;.|.......F|
|00000df0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000e00| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000e10| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+