blob: 040ac7e981ec3d83f7166673c0ca9c05c528e982 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package cdrom; # $Id$
use diagnostics;
use strict;
use detect_devices;
my %transTable = ( cm206 => 'cm206cd', sonycd535 => 'cdu535');
1;
sub setupCDdevicePanel {
my ($type) = @_;
}
sub findAtapi {
my $ide = ideGetDevices();
foreach (@$ide) { $_->{type} eq 'cdrom' and return $_->{device} }
error();
}
sub findSCSIcdrom {
detect_devices::isSCSI() or return error();
my $scsi = detect_devices::getSCSI();
foreach (@$scsi) { $_->{type} eq 'cdrom' and return $_->{device} }
error();
}
sub setupCDdevice {
my ($cddev, $dl) = @_;
#-TODO
}
sub removeCDmodule {
#- this wil fail silently if no CD module has been loaded
removeDeviceDriver('cdrom');
1;
}
|