Rev 5128 | Rev 5354 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5128 | Rev 5271 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | struct drm_device *main_device; |
27 | struct drm_device *main_device; |
28 | struct drm_file *drm_file_handlers[256]; |
28 | struct drm_file *drm_file_handlers[256]; |
Line 29... | Line 29... | ||
29 | 29 | ||
Line 30... | Line 30... | ||
30 | videomode_t usermode; |
30 | videomode_t usermode; |
Line 31... | Line 31... | ||
31 | 31 | ||
32 | void cpu_detect(); |
32 | void cpu_detect1(); |
Line 33... | Line 33... | ||
33 | 33 | ||
Line 115... | Line 115... | ||
115 | }; |
115 | }; |
Line 116... | Line 116... | ||
116 | 116 | ||
117 | asm volatile ("int $0x40"::"a"(-1)); |
117 | asm volatile ("int $0x40"::"a"(-1)); |
Line 118... | Line 118... | ||
118 | } |
118 | } |
119 | 119 | ||
120 | u32_t __attribute__((externally_visible)) drvEntry(int action, char *cmdline) |
120 | u32 __attribute__((externally_visible)) drvEntry(int action, char *cmdline) |
Line 121... | Line 121... | ||
121 | { |
121 | { |
Line 132... | Line 132... | ||
132 | }; |
132 | }; |
Line 133... | Line 133... | ||
133 | 133 | ||
134 | if( GetService("DISPLAY") != 0 ) |
134 | if( GetService("DISPLAY") != 0 ) |
Line 135... | Line 135... | ||
135 | return 0; |
135 | return 0; |
Line 136... | Line 136... | ||
136 | 136 | ||
137 | printf("Radeon v3.17-rc5 cmdline %s\n", cmdline); |
137 | printf("Radeon v3.19-rc1 cmdline %s\n", cmdline); |
Line 138... | Line 138... | ||
138 | 138 | ||
139 | if( cmdline && *cmdline ) |
139 | if( cmdline && *cmdline ) |
140 | parse_cmdline(cmdline, &usermode, log, &radeon_modeset); |
140 | parse_cmdline(cmdline, &usermode, log, &radeon_modeset); |
141 | 141 | ||
142 | if( *log && !dbg_open(log)) |
142 | if( *log && !dbg_open(log)) |
Line 143... | Line 143... | ||
143 | { |
143 | { |
Line 144... | Line 144... | ||
144 | printf("Can't open %s\nExit\n", log); |
144 | printf("Can't open %s\nExit\n", log); |
145 | return 0; |
145 | return 0; |
146 | } |
146 | } |
147 | 147 | ||
Line 215... | Line 215... | ||
215 | break; |
215 | break; |
Line 216... | Line 216... | ||
216 | 216 | ||
217 | int _stdcall display_handler(ioctl_t *io) |
217 | int _stdcall display_handler(ioctl_t *io) |
218 | { |
218 | { |
219 | int retval = -1; |
219 | int retval = -1; |
220 | u32_t *inp; |
220 | u32 *inp; |
Line 221... | Line 221... | ||
221 | u32_t *outp; |
221 | u32 *outp; |
222 | 222 | ||
Line 223... | Line 223... | ||
223 | inp = io->input; |
223 | inp = io->input; |
Line 271... | Line 271... | ||
271 | 271 | ||
272 | 272 | ||
Line 273... | Line 273... | ||
273 | #define PCI_CLASS_REVISION 0x08 |
273 | #define PCI_CLASS_REVISION 0x08 |
274 | #define PCI_CLASS_DISPLAY_VGA 0x0300 |
274 | #define PCI_CLASS_DISPLAY_VGA 0x0300 |
275 | 275 | ||
276 | int pci_scan_filter(u32_t id, u32_t busnr, u32_t devfn) |
276 | int pci_scan_filter(u32 id, u32 busnr, u32 devfn) |
277 | { |
277 | { |
Line 278... | Line 278... | ||
278 | u16_t vendor, device; |
278 | u16 vendor, device; |
279 | u32_t class; |
279 | u32 class; |