- Timestamp:
- 2006-05-15T11:51:28Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 043dcc27
- Parents:
- 52352ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pci/pci.c
r52352ec rbabe786 14 14 #include <task.h> 15 15 #include <stdlib.h> 16 #include <ipc.h> 17 #include <errno.h> 16 18 17 19 #include "libpci/pci.h" … … 19 21 #define PCI_CONF1 0xcf8 20 22 #define PCI_CONF1_SIZE 8 23 24 #define NAME "PCI" 21 25 22 26 int main(int argc, char *argv[]) … … 27 31 char buf[80]; 28 32 29 printf("HelenOS PCI driver\n"); 33 int ipc_res; 34 ipcarg_t ns_phone_addr; 35 36 printf("%s: HelenOS PCI driver\n", NAME); 30 37 31 38 /* … … 48 55 pci_cleanup(pacc); /* Close everything */ 49 56 57 printf("%s: registering at naming service.\n", NAME); 58 if (ipc_connect_to_me(PHONE_NS, 40, 70, &ns_phone_addr) != 0) { 59 printf("Failed to register %s at naming service.\n", NAME); 60 return -1; 61 } 62 63 printf("%s: accepting connections\n", NAME); 64 while (1) { 65 ipc_call_t call; 66 ipc_callid_t callid; 67 68 callid = ipc_wait_for_call(&call, 0); 69 ipc_answer(callid, EHANGUP, 0, 0); 70 } 50 71 return 0; 51 72 }
Note:
See TracChangeset
for help on using the changeset viewer.