Rev 1335 | Rev 1343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1335 | Rev 1336 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | struct pci_dev *dev; |
29 | struct pci_dev *dev; |
30 | unsigned int c; |
30 | unsigned int c; |
31 | char buf[80]; |
31 | char buf[80]; |
32 | 32 | ||
33 | int ipc_res; |
33 | int ipc_res; |
34 | ipcarg_t ns_phone_addr; |
34 | ipcarg_t ns_in_phone_hash; |
35 | 35 | ||
36 | printf("%s: HelenOS PCI driver\n", NAME); |
36 | printf("%s: HelenOS PCI driver\n", NAME); |
37 | 37 | ||
38 | /* |
38 | /* |
39 | * Gain control over PCI configuration ports. |
39 | * Gain control over PCI configuration ports. |
Line 53... | Line 53... | ||
53 | dev->vendor_id, dev->device_id)); |
53 | dev->vendor_id, dev->device_id)); |
54 | } |
54 | } |
55 | pci_cleanup(pacc); /* Close everything */ |
55 | pci_cleanup(pacc); /* Close everything */ |
56 | 56 | ||
57 | printf("%s: registering at naming service.\n", NAME); |
57 | printf("%s: registering at naming service.\n", NAME); |
58 | if (ipc_connect_to_me(PHONE_NS, 40, 70, &ns_phone_addr) != 0) { |
58 | if (ipc_connect_to_me(PHONE_NS, 40, 70, &ns_in_phone_hash) != 0) { |
59 | printf("Failed to register %s at naming service.\n", NAME); |
59 | printf("Failed to register %s at naming service.\n", NAME); |
60 | return -1; |
60 | return -1; |
61 | } |
61 | } |
62 | 62 | ||
63 | printf("%s: accepting connections\n", NAME); |
63 | printf("%s: accepting connections\n", NAME); |