After a lot of searching, I managed to find the Ubuntu-patched toshiba_acpi source; for some reason, neither the linux-source package, nor the source (apt-get source) for linux-image-2.6.27-7-generic contained the current 0.19a-dev version of the toshiba_acpi module. In fact, the Ubuntu patches also haven't reached upstream, either.
In order to get toshiba_acpi to compile on the 2.6.27-7-generic kernel, I had to comment out the following line (somewhere around 697), and thus disable the compatibility layer that utilities such as toshset use. This function call (to a function that no longer exists) will need to be converted into some current equivalent. Building the module out-of-tree also requires a bit of hacking at the .config file, and at parameters passed to the kbuild system.
static int __init
old_driver_emulation_init(void)
{
int status;
void __iomem *bios = ioremap(0xf0000, 0x10000);
if (!bios) return -ENOMEM;
if ((status = misc_register(&tosh_device))) { printk(MY_ERR "failed to register misc device %d (\"%s\")\n", tosh_device.minor, tosh_device.name); return status;
}
setup_tosh_info(bios);
/* had to comment this out: create_proc_info_entry(OLD_PROC_TOSHIBA, 0, NULL, tosh_get_info); */
After a lot of searching, I managed to find the Ubuntu-patched toshiba_acpi source; for some reason, neither the linux-source package, nor the source (apt-get source) for linux-image- 2.6.27- 7-generic contained the current 0.19a-dev version of the toshiba_acpi module. In fact, the Ubuntu patches also haven't reached upstream, either.
In order to get toshiba_acpi to compile on the 2.6.27-7-generic kernel, I had to comment out the following line (somewhere around 697), and thus disable the compatibility layer that utilities such as toshset use. This function call (to a function that no longer exists) will need to be converted into some current equivalent. Building the module out-of-tree also requires a bit of hacking at the .config file, and at parameters passed to the kbuild system.
static int __init emulation_ init(void)
return -ENOMEM;
old_driver_
{
int status;
void __iomem *bios = ioremap(0xf0000, 0x10000);
if (!bios)
if ((status = misc_register( &tosh_device) )) {
printk( MY_ERR "failed to register misc device %d (\"%s\")\n",
tosh_ device. minor, tosh_device.name);
return status;
}
/* had to comment this out: create_
return 0;
}