Apple Inc. v. Psystar Corporation

Filing 187

MEMORANDUM in Opposition to Apple's Motion to Seal filed byPsystar Corporation. (Attachments: # 1 Exhibit A, # 2 Exhibit B, # 3 Exhibit C, # 4 Exhibit D, # 5 Proposed Order)(Camara, Kiwi) (Filed on 10/13/2009)

Download PDF
Apple Inc. v. Psystar Corporation Doc. 187 Att. 3 Case3:08-cv-03251-WHA Document187-4 Filed10/13/09 Page1 of 6 Exhibit D Dockets.Justia.com Case3:08-cv-03251-WHA Document187-4 Filed10/13/09 Page2 of 6 AttachmentAtoDeclaration(SourceCode) /* *smc_read.c:WrittenforMacOSX10.5.Compileasfollows: * *gccWallosmc_readsmc_read.cframeworkIOKit */ #include<stdio.h> #include<IOKit/IOKitLib.h> typedefstruct{ uint32_tkey; uint8_t__d0[22]; uint32_tdatasize; uint8_t__d1[10]; uint8_tcmd; uint32_t__d2; uint8_tdata[32]; }AppleSMCBuffer_t; intmain(void) { io_service_tservice=IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleSMC")); if(!service) return1; io_connect_tport=(io_connect_t)0; kern_return_tkr=IOServiceOpen(service,mach_task_self(),0,&port); IOObjectRelease(service); if(kr!=kIOReturnSuccess) returnkr; AppleSMCBuffer_tinputStruct={'OSK0',{0},32,{0},5,},outputStruct; size_toutputStructCnt=sizeof(outputStruct); kr=IOConnectCallStructMethod((mach_port_t)port,(uint32_t)2, (constvoid*)&inputStruct,sizeof(inputStruct), (void*)&outputStruct,&outputStructCnt); if(kr!=kIOReturnSuccess) returnkr; inti=0; Case3:08-cv-03251-WHA Document187-4 Filed10/13/09 Page3 of 6 } for(i=0;i<32;i++) printf("%c",outputStruct.data[i]); inputStruct.key='OSK1'; kr=IOConnectCallStructMethod((mach_port_t)port,(uint32_t)2, (constvoid*)&inputStruct,sizeof(inputStruct), (void*)&outputStruct,&outputStructCnt); if(kr==kIOReturnSuccess) for(i=0;i<32;i++) printf("%c",outputStruct.data[i]);printf("\n"); returnIOServiceClose(port); Case3:08-cv-03251-WHA Document187-4 Filed10/13/09 Page4 of 6 Attachment B to Declaration (Screen Shot) Attachment C to Declaration Case3:08-cv-03251-WHA Document187-4 Filed10/13/09 Page5 of 6 Case3:08-cv-03251-WHA Document187-4 Filed10/13/09 Page6 of 6

Disclaimer: Justia Dockets & Filings provides public litigation records from the federal appellate and district courts. These filings and docket sheets should not be considered findings of fact or liability, nor do they necessarily reflect the view of Justia.


Why Is My Information Online?