summaryrefslogtreecommitdiffstats
path: root/dkms-modules-info/2.6.33.4-desktop586-3mnb
diff options
context:
space:
mode:
authorMandrake <mandrake@mandriva.com>2010-05-26 01:27:48 +0000
committerMandrake <mandrake@mandriva.com>2010-05-26 01:27:48 +0000
commit3e222aaebd31050891ffc810f60458931d0baa86 (patch)
tree5384934b43cb42cf6463721613b0a57fc4d4acbc /dkms-modules-info/2.6.33.4-desktop586-3mnb
parent7fa027e697f9057ece9bc70ba7d8dd84b5652d19 (diff)
downloadldetect-lst-3e222aaebd31050891ffc810f60458931d0baa86.tar
ldetect-lst-3e222aaebd31050891ffc810f60458931d0baa86.tar.gz
ldetect-lst-3e222aaebd31050891ffc810f60458931d0baa86.tar.bz2
ldetect-lst-3e222aaebd31050891ffc810f60458931d0baa86.tar.xz
ldetect-lst-3e222aaebd31050891ffc810f60458931d0baa86.zip
add dkms info for hcfpcimodem with kernel 2.6.33.4-desktop586-3mnb
Diffstat (limited to 'dkms-modules-info/2.6.33.4-desktop586-3mnb')
-rw-r--r--dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciengine.alias0
-rw-r--r--dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciengine.description1
-rw-r--r--dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpcihw.alias75
-rw-r--r--dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpcihw.description1
-rw-r--r--dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciosspec.alias0
-rw-r--r--dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciosspec.description1
-rw-r--r--dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciserial.alias0
-rw-r--r--dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciserial.description1
8 files changed, 79 insertions, 0 deletions
diff --git a/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciengine.alias b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciengine.alias
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciengine.alias
diff --git a/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciengine.description b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciengine.description
new file mode 100644
index 00000000..22b0ccb9
--- /dev/null
+++ b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciengine.description
@@ -0,0 +1 @@
+Conexant modem engine
diff --git a/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpcihw.alias b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpcihw.alias
new file mode 100644
index 00000000..e42ac2e4
--- /dev/null
+++ b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpcihw.alias
@@ -0,0 +1,75 @@
+pci:v000014F1d00004321sv*sd*bc*sc*i*
+pci:v0000127Ad00004321sv*sd*bc*sc*i*
+pci:v000014F1d00001459sv*sd*bc*sc*i*
+pci:v000014F1d00001457sv*sd*bc*sc*i*
+pci:v000014F1d00001452sv*sd*bc*sc*i*
+pci:v000014F1d00001456sv*sd*bc*sc*i*
+pci:v000014F1d00001455sv*sd*bc*sc*i*
+pci:v000014F1d00001454sv*sd*bc*sc*i*
+pci:v000014F1d00001453sv*sd*bc*sc*i*
+pci:v000014F1d00001066sv*sd*bc*sc*i*
+pci:v000014F1d00001065sv*sd*bc*sc*i*
+pci:v000014F1d00001064sv*sd*bc*sc*i*
+pci:v000014F1d00001063sv*sd*bc*sc*i*
+pci:v000014F1d00001059sv*sd*bc*sc*i*
+pci:v000014F1d00001057sv*sd*bc*sc*i*
+pci:v000014F1d00001052sv*sd*bc*sc*i*
+pci:v000014F1d00001056sv*sd*bc*sc*i*
+pci:v000014F1d00001055sv*sd*bc*sc*i*
+pci:v000014F1d00001054sv*sd*bc*sc*i*
+pci:v000014F1d00001053sv*sd*bc*sc*i*
+pci:v000014F1d00001F15sv*sd*bc*sc*i*
+pci:v000014F1d00001F14sv*sd*bc*sc*i*
+pci:v000014F1d00001F11sv*sd*bc*sc*i*
+pci:v000014F1d00001F10sv*sd*bc*sc*i*
+pci:v000014F1d000010B6sv*sd*bc*sc*i*
+pci:v000014F1d000010B5sv*sd*bc*sc*i*
+pci:v000014F1d000010B4sv*sd*bc*sc*i*
+pci:v000014F1d000010B3sv*sd*bc*sc*i*
+pci:v000014F1d00001815sv*sd*bc*sc*i*
+pci:v000014F1d00001813sv*sd*bc*sc*i*
+pci:v0000127Ad00001805sv*sd*bc*sc*i*
+pci:v0000127Ad00001804sv*sd*bc*sc*i*
+pci:v0000127Ad00001802sv*sd*bc*sc*i*
+pci:v0000141Ad00001035sv*sd*bc*sc*i*
+pci:v0000158Bd00000015sv*sd*bc*sc*i*
+pci:v0000148Dd00001003sv*sd*bc*sc*i*
+pci:v00001024d00001024sv*sd*bc*sc*i*
+pci:v000014F1d00002006sv*sd*bc*sc*i*
+pci:v0000127Ad00002006sv*sd*bc*sc*i*
+pci:v000014F1d00002005sv*sd*bc*sc*i*
+pci:v0000127Ad00002005sv*sd*bc*sc*i*
+pci:v000014F1d00002004sv*sd*bc*sc*i*
+pci:v0000127Ad00002004sv*sd*bc*sc*i*
+pci:v000014F1d00001085sv*sd*bc*sc*i*
+pci:v0000127Ad00001085sv*sd*bc*sc*i*
+pci:v000014F1d00001036sv*sd*bc*sc*i*
+pci:v0000127Ad00001036sv*sd*bc*sc*i*
+pci:v000014F1d00001035sv*sd*bc*sc*i*
+pci:v0000127Ad00001035sv*sd*bc*sc*i*
+pci:v000014F1d00001034sv*sd*bc*sc*i*
+pci:v0000127Ad00001034sv*sd*bc*sc*i*
+pci:v000014F1d00001033sv*sd*bc*sc*i*
+pci:v0000127Ad00001033sv*sd*bc*sc*i*
+pci:v000014F1d00001032sv*sd*bc*sc*i*
+pci:v0000127Ad00001032sv*sd*bc*sc*i*
+pci:v000014F1d00001025sv*sd*bc*sc*i*
+pci:v0000127Ad00001025sv*sd*bc*sc*i*
+pci:v000014F1d00001026sv*sd*bc*sc*i*
+pci:v0000127Ad00001026sv*sd*bc*sc*i*
+pci:v000014F1d00001024sv*sd*bc*sc*i*
+pci:v0000127Ad00001024sv*sd*bc*sc*i*
+pci:v000014F1d00001023sv*sd*bc*sc*i*
+pci:v0000127Ad00001023sv*sd*bc*sc*i*
+pci:v000014F1d00001022sv*sd*bc*sc*i*
+pci:v0000127Ad00001022sv*sd*bc*sc*i*
+pci:v000014F1d00001006sv*sd*bc*sc*i*
+pci:v0000127Ad00001006sv*sd*bc*sc*i*
+pci:v000014F1d00001005sv*sd*bc*sc*i*
+pci:v0000127Ad00001005sv*sd*bc*sc*i*
+pci:v000014F1d00001004sv*sd*bc*sc*i*
+pci:v0000127Ad00001004sv*sd*bc*sc*i*
+pci:v000014F1d00001003sv*sd*bc*sc*i*
+pci:v0000127Ad00001003sv*sd*bc*sc*i*
+pci:v000014F1d00001002sv*sd*bc*sc*i*
+pci:v0000127Ad00001002sv*sd*bc*sc*i*
diff --git a/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpcihw.description b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpcihw.description
new file mode 100644
index 00000000..2fa50d5e
--- /dev/null
+++ b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpcihw.description
@@ -0,0 +1 @@
+Conexant low-level hardware driver
diff --git a/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciosspec.alias b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciosspec.alias
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciosspec.alias
diff --git a/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciosspec.description b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciosspec.description
new file mode 100644
index 00000000..8d4d87e5
--- /dev/null
+++ b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciosspec.description
@@ -0,0 +1 @@
+OS-specific support module
diff --git a/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciserial.alias b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciserial.alias
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciserial.alias
diff --git a/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciserial.description b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciserial.description
new file mode 100644
index 00000000..9650d34c
--- /dev/null
+++ b/dkms-modules-info/2.6.33.4-desktop586-3mnb/hcfpciserial.description
@@ -0,0 +1 @@
+Virtual serial port driver for Conexant modems
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474
package fsedit; # $Id$

use diagnostics;
use strict;
use vars qw(%suggestions);

#-######################################################################################
#- misc imports
#-######################################################################################
use common qw(:common :constant :functional :file);
use partition_table qw(:types);
use partition_table_raw;
use detect_devices;
use fsedit;
use devices;
use loopback;
use log;
use fs;

%suggestions = (
  __("simple") => [
    { mntpoint => "/",     size => 300 << 11, type => 0x83, ratio => 5, maxsize =>3500 << 11 },
    { mntpoint => "swap",  size =>  64 << 11, type => 0x82, ratio => 1, maxsize => 250 << 11 },
    { mntpoint => "/home", size => 300 << 11, type => 0x83, ratio => 3 },
  ], 'with usr' => [
    { mntpoint => "/",     size => 150 << 11, type => 0x83, ratio => 1, maxsize => 500 << 11 },
    { mntpoint => "swap",  size =>  64 << 11, type => 0x82, ratio => 1, maxsize => 250 << 11 },
    { mntpoint => "/usr",  size => 300 << 11, type => 0x83, ratio => 4, maxsize =>3000 << 11 },
    { mntpoint => "/home", size => 100 << 11, type => 0x83, ratio => 5 },
  ], __("server") => [
    { mntpoint => "/",     size => 150 << 11, type => 0x83, ratio => 1, maxsize => 250 << 11 },
    { mntpoint => "swap",  size =>  64 << 11, type => 0x82, ratio => 2, maxsize => 400 << 11 },
    { mntpoint => "/usr",  size => 300 << 11, type => 0x83, ratio => 3, maxsize =>3000 << 11 },
    { mntpoint => "/var",  size => 100 << 11, type => 0x83, ratio => 4 },
    { mntpoint => "/home", size => 100 << 11, type => 0x83, ratio => 5 },
  ],
);
my @suggestions_mntpoints = (
    "/root", "/var/ftp", "/var/www", "/boot",
    arch() =~ /sparc/ ? "/mnt/sunos" : "/mnt/windows",
);

my @partitions_signatures = (
    [ 0x83, 0x438, "\x53\xEF" ],
    [ 0x183, 0x10034, "ReIsErFs" ],
    [ 0x183, 0x10034, "ReIsEr2Fs" ],
    [ 0x283, 0, 'XFSB', 0x200, 'XAGF', 0x400, 'XAGI' ],
    [ 0x82, 4086, "SWAP-SPACE" ],
    [ 0x7,  0x1FE, "\x55\xAA", 0x3, "NTFS" ],
    [ 0xc,  0x1FE, "\x55\xAA", 0x52, "FAT32" ],
arch() !~ /^sparc/ ? (
    [ 0x6,  0x1FE, "\x55\xAA", 0x36, "FAT" ],
) : (),
);

sub typeOfPart { typeFromMagic(devices::make($_[0]), @partitions_signatures) }

#-######################################################################################
#- Functions
#-######################################################################################
sub hds {
    my ($drives, $flags) = @_;
    my (@hds, @lvms);
    my $rc;

    foreach (@$drives) {
	my $file = devices::make($_->{device});

	my $hd = partition_table_raw::get_geometry($file) or log::l("An error occurred while getting the geometry of block device $file: $!"), next;
	add2hash_($hd, $_);
	$hd->{file} = $file;
	$hd->{prefix} = $hd->{device};
	# for RAID arrays of format c0d0p1
	$hd->{prefix} .= "p" if $hd->{prefix} =~ m,(rd|ida|cciss)/,;

	eval { partition_table::read($hd, $flags->{clearall} || member($_->{device}, @{$flags->{clear} || []})) };
	if ($@) {
	    partition_table_raw::zero_MBR($hd);
	}
	member($_->{device}, @{$flags->{clear} || []}) and partition_table::remove($hd, $_)
	  foreach partition_table::get_normal_parts($hd);

	#- special case for type overloading (eg: reiserfs is 0x183)
	foreach (grep { isExt2($_) } partition_table::get_normal_parts($hd)) {
	    my $type = typeOfPart($_->{device});
	    $_->{type} = $type if $type > 0x100;
	}
	push @hds, $hd;
    }
    if (my @pvs = grep { isLVM($_) } map { partition_table::get_normal_parts($_) } @hds) {
	#- otherwise vgscan won't find them
	devices::make($_->{device}) foreach @pvs; 
	require lvm;
	foreach (@pvs) {
	    my $name = lvm::get_vg($_) or next;
	    my ($lvm) = grep { $_->{LVMname} eq $name } (@hds, @lvms);
	    if (!$lvm) {
		$lvm = bless { disks => [], LVMname => $name, level => 'linear' }, 'lvm';
		lvm::update_size($lvm);
		lvm::get_lvs($lvm);
		push @lvms, $lvm;
	    }
	    $_->{lvm} = $name;
	    push @{$lvm->{disks}}, $_;
	}
    }
    \@hds, \@lvms;
}

sub readProcPartitions {
    my ($hds) = @_;
    my @parts;
    foreach (cat_("/proc/partitions")) {
	my (undef, undef, $size, $device) = split;
	next if $size eq "1"; #- extended partitions
	foreach (@$hds) {
	    push @parts, { start => 0, size => $size * 2, device => $device, 
			   type => typeOfPart($device), rootDevice => $_->{device} 
			 } if $device =~ /^$_->{device}./;
	}
    }
    @parts;
}

#- get all normal partition including special ones as found on sparc.
sub get_fstab {
    loopback::loopbacks(@_), map { partition_table::get_normal_parts($_) } @_
}

#- get normal partition that should be visible for working on.
sub get_visible_fstab {
    grep { $_ && !partition_table::isWholedisk($_) && !partition_table::isHiddenMacPart($_) } map { partition_table::get_normal_parts($_) } @_;
}

sub free_space {
    sum map { $_->{size} } map { partition_table::get_holes($_) } @_;
}

sub is_one_big_fat {
    my ($hds) = @_;
    @$hds == 1 or return;

    my @l = get_fstab(@$hds);
    @l == 1 && isFat($l[0]) && free_space(@$hds) < 10 << 11;
}


sub computeSize {
    my ($part, $best, $hds, $suggestions) = @_;
    my $max = $part->{maxsize} || $part->{size};
    return min($max, $best->{size}) unless $best->{ratio};

    my $free_space = free_space(@$hds);
    my @l = my @L = grep { 
	if (!has_mntpoint($_->{mntpoint}, $hds) && $free_space >= $_->{size}) {
	    $free_space -= $_->{size};
	    1;
	} else { 0 } } @$suggestions;

    my $tot_ratios = 0;
    while (1) {
	my $old_free_space = $free_space;
	my $old_tot_ratios = $tot_ratios;

	$tot_ratios = sum(map { $_->{ratio} } @l);
	last if $tot_ratios == $old_tot_ratios;

	@l = grep { 
	    if ($_->{ratio} && $_->{maxsize} && $tot_ratios &&