Commit 4d5661a0 authored by Deepak Saxena's avatar Deepak Saxena

Merge bk://linux.bkbits.net/linux-2.5

into plexity.net:/home/dsaxena/src/linux-2.5-bk
parents 84eecd35 7d22476d
...@@ -50,7 +50,7 @@ struct low_i2c_host ...@@ -50,7 +50,7 @@ struct low_i2c_host
struct device_node *np; /* OF device node */ struct device_node *np; /* OF device node */
struct semaphore mutex; /* Access mutex for use by i2c-keywest */ struct semaphore mutex; /* Access mutex for use by i2c-keywest */
low_i2c_func_t func; /* Access function */ low_i2c_func_t func; /* Access function */
int is_open : 1; /* Poor man's access control */ unsigned is_open : 1; /* Poor man's access control */
int mode; /* Current mode */ int mode; /* Current mode */
int channel; /* Current channel */ int channel; /* Current channel */
int num_channels; /* Number of channels */ int num_channels; /* Number of channels */
......
...@@ -130,7 +130,7 @@ config AGP_VIA ...@@ -130,7 +130,7 @@ config AGP_VIA
depends on AGP && X86 && !X86_64 depends on AGP && X86 && !X86_64
help help
This option gives you AGP support for the GLX component of This option gives you AGP support for the GLX component of
XFree86 4.x on VIA MPV3/Apollo Pro chipsets. XFree86 4.x on VIA MVP3/Apollo Pro chipsets.
You should say Y here if you use XFree86 3.3.6 or 4.x and want to You should say Y here if you use XFree86 3.3.6 or 4.x and want to
use GLX or DRI. If unsure, say N. use GLX or DRI. If unsure, say N.
......
...@@ -675,4 +675,4 @@ module_exit(agp_amd64_cleanup); ...@@ -675,4 +675,4 @@ module_exit(agp_amd64_cleanup);
MODULE_AUTHOR("Dave Jones <davej@codemonkey.org.uk>, Andi Kleen"); MODULE_AUTHOR("Dave Jones <davej@codemonkey.org.uk>, Andi Kleen");
MODULE_PARM(agp_try_unsupported, "1i"); MODULE_PARM(agp_try_unsupported, "1i");
MODULE_LICENSE("GPL and additional rights"); MODULE_LICENSE("GPL");
...@@ -162,11 +162,11 @@ static void *i8xx_alloc_pages(void) ...@@ -162,11 +162,11 @@ static void *i8xx_alloc_pages(void)
page = alloc_pages(GFP_KERNEL, 2); page = alloc_pages(GFP_KERNEL, 2);
if (page == NULL) { if (page == NULL) {
return 0; return NULL;
} }
if (change_page_attr(page, 4, PAGE_KERNEL_NOCACHE) < 0) { if (change_page_attr(page, 4, PAGE_KERNEL_NOCACHE) < 0) {
__free_page(page); __free_page(page);
return 0; return NULL;
} }
get_page(page); get_page(page);
SetPageLocked(page); SetPageLocked(page);
...@@ -180,7 +180,7 @@ static void i8xx_destroy_pages(void *addr) ...@@ -180,7 +180,7 @@ static void i8xx_destroy_pages(void *addr)
if (addr == NULL) if (addr == NULL)
return; return;
page = virt_to_page(addr); page = virt_to_page(addr);
change_page_attr(page, 4, PAGE_KERNEL); change_page_attr(page, 4, PAGE_KERNEL);
put_page(page); put_page(page);
...@@ -330,7 +330,7 @@ static void intel_i810_free_by_type(struct agp_memory *curr) ...@@ -330,7 +330,7 @@ static void intel_i810_free_by_type(struct agp_memory *curr)
if (curr->page_count == 4) if (curr->page_count == 4)
i8xx_destroy_pages(phys_to_virt(curr->memory[0])); i8xx_destroy_pages(phys_to_virt(curr->memory[0]));
else else
agp_bridge->driver->agp_destroy_page( agp_bridge->driver->agp_destroy_page(
phys_to_virt(curr->memory[0])); phys_to_virt(curr->memory[0]));
vfree(curr->memory); vfree(curr->memory);
} }
...@@ -371,7 +371,7 @@ static void intel_i830_init_gtt_entries(void) ...@@ -371,7 +371,7 @@ static void intel_i830_init_gtt_entries(void)
/* We obtain the size of the GTT, which is also stored (for some /* We obtain the size of the GTT, which is also stored (for some
* reason) at the top of stolen memory. Then we add 4KB to that * reason) at the top of stolen memory. Then we add 4KB to that
* for the video BIOS popup, which is also stored in there. */ * for the video BIOS popup, which is also stored in there. */
size = agp_bridge->driver->fetch_size() + 4; size = agp_bridge->driver->fetch_size() + 4;
if (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82830_HB || if (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82830_HB ||
...@@ -746,13 +746,13 @@ static int intel_i915_create_gatt_table(void) ...@@ -746,13 +746,13 @@ static int intel_i915_create_gatt_table(void)
size = agp_bridge->current_size; size = agp_bridge->current_size;
page_order = size->page_order; page_order = size->page_order;
num_entries = size->num_entries; num_entries = size->num_entries;
agp_bridge->gatt_table_real = 0; agp_bridge->gatt_table_real = NULL;
pci_read_config_dword(intel_i830_private.i830_dev, I915_MMADDR, &temp); pci_read_config_dword(intel_i830_private.i830_dev, I915_MMADDR, &temp);
pci_read_config_dword(intel_i830_private.i830_dev, I915_PTEADDR,&temp2); pci_read_config_dword(intel_i830_private.i830_dev, I915_PTEADDR,&temp2);
intel_i830_private.gtt = (volatile u32 *) ioremap(temp2, 256 * 1024); intel_i830_private.gtt = (volatile u32 *) ioremap(temp2, 256 * 1024);
if (!intel_i830_private.gtt) if (!intel_i830_private.gtt)
return (-ENOMEM); return (-ENOMEM);
temp &= 0xfff80000; temp &= 0xfff80000;
...@@ -921,7 +921,7 @@ static int intel_815_configure(void) ...@@ -921,7 +921,7 @@ static int intel_815_configure(void)
/* aperture size */ /* aperture size */
pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE,
current_size->size_value); current_size->size_value);
/* address to map to */ /* address to map to */
pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp); pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp);
...@@ -933,7 +933,7 @@ static int intel_815_configure(void) ...@@ -933,7 +933,7 @@ static int intel_815_configure(void)
pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, addr); pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, addr);
/* agpctrl */ /* agpctrl */
pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000); pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000);
/* apcont */ /* apcont */
pci_read_config_byte(agp_bridge->dev, INTEL_815_APCONT, &temp2); pci_read_config_byte(agp_bridge->dev, INTEL_815_APCONT, &temp2);
...@@ -956,7 +956,7 @@ static void intel_820_cleanup(void) ...@@ -956,7 +956,7 @@ static void intel_820_cleanup(void)
previous_size = A_SIZE_8(agp_bridge->previous_size); previous_size = A_SIZE_8(agp_bridge->previous_size);
pci_read_config_byte(agp_bridge->dev, INTEL_I820_RDCR, &temp); pci_read_config_byte(agp_bridge->dev, INTEL_I820_RDCR, &temp);
pci_write_config_byte(agp_bridge->dev, INTEL_I820_RDCR, pci_write_config_byte(agp_bridge->dev, INTEL_I820_RDCR,
temp & ~(1 << 1)); temp & ~(1 << 1));
pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE,
previous_size->size_value); previous_size->size_value);
...@@ -966,23 +966,23 @@ static void intel_820_cleanup(void) ...@@ -966,23 +966,23 @@ static void intel_820_cleanup(void)
static int intel_820_configure(void) static int intel_820_configure(void)
{ {
u32 temp; u32 temp;
u8 temp2; u8 temp2;
struct aper_size_info_8 *current_size; struct aper_size_info_8 *current_size;
current_size = A_SIZE_8(agp_bridge->current_size); current_size = A_SIZE_8(agp_bridge->current_size);
/* aperture size */ /* aperture size */
pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, current_size->size_value); pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, current_size->size_value);
/* address to map to */ /* address to map to */
pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp); pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp);
agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK); agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK);
/* attbase - aperture base */ /* attbase - aperture base */
pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr); pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr);
/* agpctrl */ /* agpctrl */
pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000); pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000);
/* global enable aperture access */ /* global enable aperture access */
/* This flag is not accessed through MCHCFG register as in */ /* This flag is not accessed through MCHCFG register as in */
...@@ -990,7 +990,7 @@ static int intel_820_configure(void) ...@@ -990,7 +990,7 @@ static int intel_820_configure(void)
pci_read_config_byte(agp_bridge->dev, INTEL_I820_RDCR, &temp2); pci_read_config_byte(agp_bridge->dev, INTEL_I820_RDCR, &temp2);
pci_write_config_byte(agp_bridge->dev, INTEL_I820_RDCR, temp2 | (1 << 1)); pci_write_config_byte(agp_bridge->dev, INTEL_I820_RDCR, temp2 | (1 << 1));
/* clear any possible AGP-related error conditions */ /* clear any possible AGP-related error conditions */
pci_write_config_word(agp_bridge->dev, INTEL_I820_ERRSTS, 0x001c); pci_write_config_word(agp_bridge->dev, INTEL_I820_ERRSTS, 0x001c);
return 0; return 0;
} }
...@@ -1003,23 +1003,23 @@ static int intel_840_configure(void) ...@@ -1003,23 +1003,23 @@ static int intel_840_configure(void)
current_size = A_SIZE_8(agp_bridge->current_size); current_size = A_SIZE_8(agp_bridge->current_size);
/* aperture size */ /* aperture size */
pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, current_size->size_value); pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, current_size->size_value);
/* address to map to */ /* address to map to */
pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp); pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp);
agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK); agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK);
/* attbase - aperture base */ /* attbase - aperture base */
pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr); pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr);
/* agpctrl */ /* agpctrl */
pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000); pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000);
/* mcgcfg */ /* mcgcfg */
pci_read_config_word(agp_bridge->dev, INTEL_I840_MCHCFG, &temp2); pci_read_config_word(agp_bridge->dev, INTEL_I840_MCHCFG, &temp2);
pci_write_config_word(agp_bridge->dev, INTEL_I840_MCHCFG, temp2 | (1 << 9)); pci_write_config_word(agp_bridge->dev, INTEL_I840_MCHCFG, temp2 | (1 << 9));
/* clear any possible error conditions */ /* clear any possible error conditions */
pci_write_config_word(agp_bridge->dev, INTEL_I840_ERRSTS, 0xc000); pci_write_config_word(agp_bridge->dev, INTEL_I840_ERRSTS, 0xc000);
return 0; return 0;
} }
...@@ -1032,23 +1032,23 @@ static int intel_845_configure(void) ...@@ -1032,23 +1032,23 @@ static int intel_845_configure(void)
current_size = A_SIZE_8(agp_bridge->current_size); current_size = A_SIZE_8(agp_bridge->current_size);
/* aperture size */ /* aperture size */
pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, current_size->size_value); pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, current_size->size_value);
/* address to map to */ /* address to map to */
pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp); pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp);
agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK); agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK);
/* attbase - aperture base */ /* attbase - aperture base */
pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr); pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr);
/* agpctrl */ /* agpctrl */
pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000); pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000);
/* agpm */ /* agpm */
pci_read_config_byte(agp_bridge->dev, INTEL_I845_AGPM, &temp2); pci_read_config_byte(agp_bridge->dev, INTEL_I845_AGPM, &temp2);
pci_write_config_byte(agp_bridge->dev, INTEL_I845_AGPM, temp2 | (1 << 1)); pci_write_config_byte(agp_bridge->dev, INTEL_I845_AGPM, temp2 | (1 << 1));
/* clear any possible error conditions */ /* clear any possible error conditions */
pci_write_config_word(agp_bridge->dev, INTEL_I845_ERRSTS, 0x001c); pci_write_config_word(agp_bridge->dev, INTEL_I845_ERRSTS, 0x001c);
return 0; return 0;
} }
...@@ -1061,23 +1061,23 @@ static int intel_850_configure(void) ...@@ -1061,23 +1061,23 @@ static int intel_850_configure(void)
current_size = A_SIZE_8(agp_bridge->current_size); current_size = A_SIZE_8(agp_bridge->current_size);
/* aperture size */ /* aperture size */
pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, current_size->size_value); pci_write_config_byte(agp_bridge->dev, INTEL_APSIZE, current_size->size_value);
/* address to map to */ /* address to map to */
pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp); pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp);
agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK); agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK);
/* attbase - aperture base */ /* attbase - aperture base */
pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr); pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr);
/* agpctrl */ /* agpctrl */
pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000); pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000);
/* mcgcfg */ /* mcgcfg */
pci_read_config_word(agp_bridge->dev, INTEL_I850_MCHCFG, &temp2); pci_read_config_word(agp_bridge->dev, INTEL_I850_MCHCFG, &temp2);
pci_write_config_word(agp_bridge->dev, INTEL_I850_MCHCFG, temp2 | (1 << 9)); pci_write_config_word(agp_bridge->dev, INTEL_I850_MCHCFG, temp2 | (1 << 9));
/* clear any possible AGP-related error conditions */ /* clear any possible AGP-related error conditions */
pci_write_config_word(agp_bridge->dev, INTEL_I850_ERRSTS, 0x001c); pci_write_config_word(agp_bridge->dev, INTEL_I850_ERRSTS, 0x001c);
return 0; return 0;
} }
...@@ -1163,7 +1163,7 @@ static int intel_7505_configure(void) ...@@ -1163,7 +1163,7 @@ static int intel_7505_configure(void)
/* mchcfg */ /* mchcfg */
pci_read_config_word(agp_bridge->dev, INTEL_I7505_MCHCFG, &temp2); pci_read_config_word(agp_bridge->dev, INTEL_I7505_MCHCFG, &temp2);
pci_write_config_word(agp_bridge->dev, INTEL_I7505_MCHCFG, temp2 | (1 << 9)); pci_write_config_word(agp_bridge->dev, INTEL_I7505_MCHCFG, temp2 | (1 << 9));
return 0; return 0;
} }
...@@ -1178,7 +1178,7 @@ static struct aper_size_info_8 intel_815_sizes[2] = ...@@ -1178,7 +1178,7 @@ static struct aper_size_info_8 intel_815_sizes[2] =
{64, 16384, 4, 0}, {64, 16384, 4, 0},
{32, 8192, 3, 8}, {32, 8192, 3, 8},
}; };
static struct aper_size_info_8 intel_8xx_sizes[7] = static struct aper_size_info_8 intel_8xx_sizes[7] =
{ {
{256, 65536, 6, 0}, {256, 65536, 6, 0},
...@@ -1201,7 +1201,7 @@ static struct aper_size_info_16 intel_generic_sizes[7] = ...@@ -1201,7 +1201,7 @@ static struct aper_size_info_16 intel_generic_sizes[7] =
{4, 1024, 0, 63} {4, 1024, 0, 63}
}; };
static struct aper_size_info_8 intel_830mp_sizes[4] = static struct aper_size_info_8 intel_830mp_sizes[4] =
{ {
{256, 65536, 6, 0}, {256, 65536, 6, 0},
{128, 32768, 5, 32}, {128, 32768, 5, 32},
...@@ -1283,7 +1283,7 @@ static struct agp_bridge_driver intel_830_driver = { ...@@ -1283,7 +1283,7 @@ static struct agp_bridge_driver intel_830_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.aperture_sizes = intel_i830_sizes, .aperture_sizes = intel_i830_sizes,
.size_type = FIXED_APER_SIZE, .size_type = FIXED_APER_SIZE,
.num_aperture_sizes = 3, .num_aperture_sizes = 3,
.needs_scratch_page = TRUE, .needs_scratch_page = TRUE,
.configure = intel_i830_configure, .configure = intel_i830_configure,
.fetch_size = intel_i830_fetch_size, .fetch_size = intel_i830_fetch_size,
...@@ -1445,7 +1445,7 @@ static struct agp_bridge_driver intel_915_driver = { ...@@ -1445,7 +1445,7 @@ static struct agp_bridge_driver intel_915_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.aperture_sizes = intel_i830_sizes, .aperture_sizes = intel_i830_sizes,
.size_type = FIXED_APER_SIZE, .size_type = FIXED_APER_SIZE,
.num_aperture_sizes = 3, .num_aperture_sizes = 3,
.needs_scratch_page = TRUE, .needs_scratch_page = TRUE,
.configure = intel_i915_configure, .configure = intel_i915_configure,
.fetch_size = intel_i915_fetch_size, .fetch_size = intel_i915_fetch_size,
...@@ -1489,18 +1489,13 @@ static struct agp_bridge_driver intel_7505_driver = { ...@@ -1489,18 +1489,13 @@ static struct agp_bridge_driver intel_7505_driver = {
.agp_destroy_page = agp_generic_destroy_page, .agp_destroy_page = agp_generic_destroy_page,
}; };
static int find_i810(u16 device, const char *name) static int find_i810(u16 device)
{ {
struct pci_dev *i810_dev; struct pci_dev *i810_dev;
i810_dev = pci_find_device(PCI_VENDOR_ID_INTEL, device, NULL); i810_dev = pci_find_device(PCI_VENDOR_ID_INTEL, device, NULL);
if (!i810_dev) { if (!i810_dev)
printk(KERN_ERR PFX "Detected an Intel %s Chipset, "
"but could not find the secondary device.\n",
name);
return 0; return 0;
}
intel_i810_private.i810_dev = i810_dev; intel_i810_private.i810_dev = i810_dev;
return 1; return 1;
} }
...@@ -1550,29 +1545,29 @@ static int __devinit agp_intel_probe(struct pci_dev *pdev, ...@@ -1550,29 +1545,29 @@ static int __devinit agp_intel_probe(struct pci_dev *pdev,
name = "440GX"; name = "440GX";
break; break;
case PCI_DEVICE_ID_INTEL_82810_MC1: case PCI_DEVICE_ID_INTEL_82810_MC1:
if (!find_i810(PCI_DEVICE_ID_INTEL_82810_IG1, "i810")) name = "i810";
if (!find_i810(PCI_DEVICE_ID_INTEL_82810_IG1))
goto fail; goto fail;
bridge->driver = &intel_810_driver; bridge->driver = &intel_810_driver;
name = "i810";
break; break;
case PCI_DEVICE_ID_INTEL_82810_MC3: case PCI_DEVICE_ID_INTEL_82810_MC3:
if (!find_i810(PCI_DEVICE_ID_INTEL_82810_IG3, "i810 DC100")) name = "i810 DC100";
if (!find_i810(PCI_DEVICE_ID_INTEL_82810_IG3))
goto fail; goto fail;
bridge->driver = &intel_810_driver; bridge->driver = &intel_810_driver;
name = "i810 DC100";
break; break;
case PCI_DEVICE_ID_INTEL_82810E_MC: case PCI_DEVICE_ID_INTEL_82810E_MC:
if (!find_i810(PCI_DEVICE_ID_INTEL_82810E_IG, "i810 E")) name = "i810 E";
if (!find_i810(PCI_DEVICE_ID_INTEL_82810E_IG))
goto fail; goto fail;
bridge->driver = &intel_810_driver; bridge->driver = &intel_810_driver;
name = "i810 E";
break; break;
case PCI_DEVICE_ID_INTEL_82815_MC: case PCI_DEVICE_ID_INTEL_82815_MC:
/* /*
* The i815 can operate either as an i810 style * The i815 can operate either as an i810 style
* integrated device, or as an AGP4X motherboard. * integrated device, or as an AGP4X motherboard.
*/ */
if (find_i810(PCI_DEVICE_ID_INTEL_82815_CGC, "i815")) if (find_i810(PCI_DEVICE_ID_INTEL_82815_CGC))
bridge->driver = &intel_810_driver; bridge->driver = &intel_810_driver;
else else
bridge->driver = &intel_815_driver; bridge->driver = &intel_815_driver;
...@@ -1708,7 +1703,10 @@ static int __devinit agp_intel_probe(struct pci_dev *pdev, ...@@ -1708,7 +1703,10 @@ static int __devinit agp_intel_probe(struct pci_dev *pdev,
pci_set_drvdata(pdev, bridge); pci_set_drvdata(pdev, bridge);
return agp_add_bridge(bridge); return agp_add_bridge(bridge);
fail:
fail:
printk(KERN_ERR PFX "Detected an Intel %s chipset, "
"but could not find the secondary device.\n", name);
agp_put_bridge(bridge); agp_put_bridge(bridge);
return -ENODEV; return -ENODEV;
} }
...@@ -1724,7 +1722,7 @@ static void __devexit agp_intel_remove(struct pci_dev *pdev) ...@@ -1724,7 +1722,7 @@ static void __devexit agp_intel_remove(struct pci_dev *pdev)
static int agp_intel_resume(struct pci_dev *pdev) static int agp_intel_resume(struct pci_dev *pdev)
{ {
struct agp_bridge_data *bridge = pci_get_drvdata(pdev); struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
pci_restore_state(pdev, pdev->saved_config_space); pci_restore_state(pdev, pdev->saved_config_space);
if (bridge->driver == &intel_generic_driver) if (bridge->driver == &intel_generic_driver)
...@@ -1741,7 +1739,7 @@ static int agp_intel_resume(struct pci_dev *pdev) ...@@ -1741,7 +1739,7 @@ static int agp_intel_resume(struct pci_dev *pdev)
static struct pci_device_id agp_intel_pci_table[] = { static struct pci_device_id agp_intel_pci_table[] = {
#define ID(x) \ #define ID(x) \
{ \ { \
.class = (PCI_CLASS_BRIDGE_HOST << 8), \ .class = (PCI_CLASS_BRIDGE_HOST << 8), \
.class_mask = ~0, \ .class_mask = ~0, \
.vendor = PCI_VENDOR_ID_INTEL, \ .vendor = PCI_VENDOR_ID_INTEL, \
...@@ -1769,7 +1767,7 @@ static struct pci_device_id agp_intel_pci_table[] = { ...@@ -1769,7 +1767,7 @@ static struct pci_device_id agp_intel_pci_table[] = {
ID(PCI_DEVICE_ID_INTEL_82865_HB), ID(PCI_DEVICE_ID_INTEL_82865_HB),
ID(PCI_DEVICE_ID_INTEL_82875_HB), ID(PCI_DEVICE_ID_INTEL_82875_HB),
ID(PCI_DEVICE_ID_INTEL_7505_0), ID(PCI_DEVICE_ID_INTEL_7505_0),
ID(PCI_DEVICE_ID_INTEL_7205_0), ID(PCI_DEVICE_ID_INTEL_7205_0),
{ } { }
}; };
......
...@@ -633,5 +633,5 @@ module_init(agp_intelmch_init); ...@@ -633,5 +633,5 @@ module_init(agp_intelmch_init);
module_exit(agp_intelmch_cleanup); module_exit(agp_intelmch_cleanup);
MODULE_AUTHOR("Dave Jones <davej@codemonkey.org.uk>"); MODULE_AUTHOR("Dave Jones <davej@codemonkey.org.uk>");
MODULE_LICENSE("GPL and additional rights"); MODULE_LICENSE("GPL");
...@@ -168,6 +168,10 @@ static struct agp_device_ids sis_agp_device_ids[] __devinitdata = ...@@ -168,6 +168,10 @@ static struct agp_device_ids sis_agp_device_ids[] __devinitdata =
.device_id = PCI_DEVICE_ID_SI_630, .device_id = PCI_DEVICE_ID_SI_630,
.chipset_name = "630", .chipset_name = "630",
}, },
{
.device_id = PCI_DEVICE_ID_SI_635,
.chipset_name = "635",
},
{ {
.device_id = PCI_DEVICE_ID_SI_645, .device_id = PCI_DEVICE_ID_SI_645,
.chipset_name = "645", .chipset_name = "645",
......
...@@ -503,5 +503,5 @@ static void __exit agp_via_cleanup(void) ...@@ -503,5 +503,5 @@ static void __exit agp_via_cleanup(void)
module_init(agp_via_init); module_init(agp_via_init);
module_exit(agp_via_cleanup); module_exit(agp_via_cleanup);
MODULE_LICENSE("GPL and additional rights"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("Dave Jones <davej@codemonkey.org.uk>"); MODULE_AUTHOR("Dave Jones <davej@codemonkey.org.uk>");
...@@ -783,7 +783,7 @@ static void batch_entropy_process(void *private_) ...@@ -783,7 +783,7 @@ static void batch_entropy_process(void *private_)
struct timer_rand_state { struct timer_rand_state {
__u32 last_time; __u32 last_time;
__s32 last_delta,last_delta2; __s32 last_delta,last_delta2;
int dont_count_entropy:1; unsigned dont_count_entropy:1;
}; };
static struct timer_rand_state keyboard_timer_state; static struct timer_rand_state keyboard_timer_state;
......
...@@ -442,7 +442,7 @@ u8 ide_dump_status (ide_drive_t *drive, const char *msg, u8 stat) ...@@ -442,7 +442,7 @@ u8 ide_dump_status (ide_drive_t *drive, const char *msg, u8 stat)
int opcode = 0x100; int opcode = 0x100;
spin_lock(&ide_lock); spin_lock(&ide_lock);
rq = 0; rq = NULL;
if (HWGROUP(drive)) if (HWGROUP(drive))
rq = HWGROUP(drive)->rq; rq = HWGROUP(drive)->rq;
spin_unlock(&ide_lock); spin_unlock(&ide_lock);
......
...@@ -62,10 +62,10 @@ typedef struct pmac_ide_hwif { ...@@ -62,10 +62,10 @@ typedef struct pmac_ide_hwif {
int irq; int irq;
int kind; int kind;
int aapl_bus_id; int aapl_bus_id;
int cable_80 : 1; unsigned cable_80 : 1;
int mediabay : 1; unsigned mediabay : 1;
int broken_dma : 1; unsigned broken_dma : 1;
int broken_dma_warn : 1; unsigned broken_dma_warn : 1;
struct device_node* node; struct device_node* node;
struct macio_dev *mdev; struct macio_dev *mdev;
u32 timings[4]; u32 timings[4];
......
...@@ -52,7 +52,7 @@ struct ehci_hcd { /* one per controller */ ...@@ -52,7 +52,7 @@ struct ehci_hcd { /* one per controller */
/* async schedule support */ /* async schedule support */
struct ehci_qh *async; struct ehci_qh *async;
struct ehci_qh *reclaim; struct ehci_qh *reclaim;
int reclaim_ready : 1; unsigned reclaim_ready : 1;
/* periodic schedule support */ /* periodic schedule support */
#define DEFAULT_I_TDPS 1024 /* some HCs can do less */ #define DEFAULT_I_TDPS 1024 /* some HCs can do less */
......
...@@ -583,7 +583,7 @@ void fb_var_to_videomode(struct fb_videomode *mode, ...@@ -583,7 +583,7 @@ void fb_var_to_videomode(struct fb_videomode *mode,
{ {
u32 pixclock, hfreq, htotal, vtotal; u32 pixclock, hfreq, htotal, vtotal;
(char *) mode->name = NULL; mode->name = NULL;
mode->xres = var->xres; mode->xres = var->xres;
mode->yres = var->yres; mode->yres = var->yres;
mode->pixclock = var->pixclock; mode->pixclock = var->pixclock;
......
...@@ -126,7 +126,7 @@ struct TCP_Server_Info { ...@@ -126,7 +126,7 @@ struct TCP_Server_Info {
enum protocolEnum protocolType; enum protocolEnum protocolType;
char versionMajor; char versionMajor;
char versionMinor; char versionMinor;
int svlocal:1; /* local server or remote */ unsigned svlocal:1; /* local server or remote */
atomic_t socketUseCount; /* number of open cifs sessions on socket */ atomic_t socketUseCount; /* number of open cifs sessions on socket */
atomic_t inFlight; /* number of requests on the wire to server */ atomic_t inFlight; /* number of requests on the wire to server */
enum statusEnum tcpStatus; /* what we think the status is */ enum statusEnum tcpStatus; /* what we think the status is */
...@@ -222,7 +222,7 @@ struct cifsTconInfo { ...@@ -222,7 +222,7 @@ struct cifsTconInfo {
FILE_SYSTEM_DEVICE_INFO fsDevInfo; FILE_SYSTEM_DEVICE_INFO fsDevInfo;
FILE_SYSTEM_ATTRIBUTE_INFO fsAttrInfo; /* ok if file system name truncated */ FILE_SYSTEM_ATTRIBUTE_INFO fsAttrInfo; /* ok if file system name truncated */
FILE_SYSTEM_UNIX_INFO fsUnixInfo; FILE_SYSTEM_UNIX_INFO fsUnixInfo;
int retry:1; unsigned retry:1;
/* BB add field for back pointer to sb struct? */ /* BB add field for back pointer to sb struct? */
}; };
...@@ -250,10 +250,10 @@ struct cifsFileInfo { ...@@ -250,10 +250,10 @@ struct cifsFileInfo {
/* lock scope id (0 if none) */ /* lock scope id (0 if none) */
struct file * pfile; /* needed for writepage */ struct file * pfile; /* needed for writepage */
struct inode * pInode; /* needed for oplock break */ struct inode * pInode; /* needed for oplock break */
int endOfSearch:1; /* we have reached end of search */ unsigned endOfSearch:1; /* we have reached end of search */
int closePend:1; /* file is marked to close */ unsigned closePend:1; /* file is marked to close */
int emptyDir:1; unsigned emptyDir:1;
int invalidHandle:1; /* file closed via session abend */ unsigned invalidHandle:1; /* file closed via session abend */
struct semaphore fh_sem; /* prevents reopen race after dead ses*/ struct semaphore fh_sem; /* prevents reopen race after dead ses*/
char * search_resume_name; char * search_resume_name;
unsigned int resume_name_length; unsigned int resume_name_length;
...@@ -272,9 +272,9 @@ struct cifsInodeInfo { ...@@ -272,9 +272,9 @@ struct cifsInodeInfo {
__u32 cifsAttrs; /* e.g. DOS archive bit, sparse, compressed, system */ __u32 cifsAttrs; /* e.g. DOS archive bit, sparse, compressed, system */
atomic_t inUse; /* num concurrent users (local openers cifs) of file*/ atomic_t inUse; /* num concurrent users (local openers cifs) of file*/
unsigned long time; /* jiffies of last update/check of inode */ unsigned long time; /* jiffies of last update/check of inode */
int clientCanCacheRead:1; /* read oplock */ unsigned clientCanCacheRead:1; /* read oplock */
int clientCanCacheAll:1; /* read and writebehind oplock */ unsigned clientCanCacheAll:1; /* read and writebehind oplock */
int oplockPending:1; unsigned oplockPending:1;
struct inode vfs_inode; struct inode vfs_inode;
}; };
......
...@@ -64,11 +64,11 @@ struct smb_vol { ...@@ -64,11 +64,11 @@ struct smb_vol {
gid_t linux_gid; gid_t linux_gid;
mode_t file_mode; mode_t file_mode;
mode_t dir_mode; mode_t dir_mode;
int rw:1; unsigned rw:1;
int retry:1; unsigned retry:1;
int intr:1; unsigned intr:1;
int setuids:1; unsigned setuids:1;
int noperm:1; unsigned noperm:1;
unsigned int rsize; unsigned int rsize;
unsigned int wsize; unsigned int wsize;
unsigned int sockopt; unsigned int sockopt;
......
...@@ -84,10 +84,10 @@ static inline unsigned short ip_compute_csum(unsigned char * buff, int len) ...@@ -84,10 +84,10 @@ static inline unsigned short ip_compute_csum(unsigned char * buff, int len)
} }
#define csum_partial_copy_from_user(src, dst, len, sum, errp) \ #define csum_partial_copy_from_user(src, dst, len, sum, errp) \
csum_partial_copy_generic((src), (dst), (len), (sum), (errp), 0) csum_partial_copy_generic((src), (dst), (len), (sum), (errp), NULL)
#define csum_partial_copy_nocheck(src, dst, len, sum) \ #define csum_partial_copy_nocheck(src, dst, len, sum) \
csum_partial_copy_generic((src), (dst), (len), (sum), 0, 0) csum_partial_copy_generic((src), (dst), (len), (sum), NULL, NULL)
static inline u32 csum_tcpudp_nofold(u32 saddr, static inline u32 csum_tcpudp_nofold(u32 saddr,
u32 daddr, u32 daddr,
......
...@@ -74,7 +74,7 @@ int cpu_down(unsigned int cpu); ...@@ -74,7 +74,7 @@ int cpu_down(unsigned int cpu);
#define hotcpu_notifier(fn, pri) #define hotcpu_notifier(fn, pri)
/* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */ /* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */
#define cpu_is_offline(cpu) 0 static inline int cpu_is_offline(int cpu) { return 0; }
#endif #endif
#endif /* _LINUX_CPU_H_ */ #endif /* _LINUX_CPU_H_ */
...@@ -1734,7 +1734,7 @@ struct reiserfs_transaction_handle { ...@@ -1734,7 +1734,7 @@ struct reiserfs_transaction_handle {
int t_blocks_allocated ; /* number of blocks this writer allocated */ int t_blocks_allocated ; /* number of blocks this writer allocated */
unsigned long t_trans_id ; /* sanity check, equals the current trans id */ unsigned long t_trans_id ; /* sanity check, equals the current trans id */
void *t_handle_save ; /* save existing current->journal_info */ void *t_handle_save ; /* save existing current->journal_info */
int displace_new_blocks:1; /* if new block allocation occurres, that block unsigned displace_new_blocks:1; /* if new block allocation occurres, that block
should be displaced from others */ should be displaced from others */
} ; } ;
...@@ -2154,9 +2154,9 @@ struct buffer_head * get_FEB (struct tree_balance *); ...@@ -2154,9 +2154,9 @@ struct buffer_head * get_FEB (struct tree_balance *);
int prealloc_size; /* is set in determine_prealloc_size() function, used by underlayed int prealloc_size; /* is set in determine_prealloc_size() function, used by underlayed
* function that do actual allocation */ * function that do actual allocation */
int formatted_node:1; /* the allocator uses different polices for getting disk space for unsigned formatted_node:1; /* the allocator uses different polices for getting disk space for
* formatted/unformatted blocks with/without preallocation */ * formatted/unformatted blocks with/without preallocation */
int preallocate:1; unsigned preallocate:1;
}; };
typedef struct __reiserfs_blocknr_hint reiserfs_blocknr_hint_t; typedef struct __reiserfs_blocknr_hint reiserfs_blocknr_hint_t;
......
...@@ -45,7 +45,7 @@ struct reiserfs_inode_info { ...@@ -45,7 +45,7 @@ struct reiserfs_inode_info {
struct list_head i_prealloc_list; /* per-transaction list of inodes which struct list_head i_prealloc_list; /* per-transaction list of inodes which
* have preallocated blocks */ * have preallocated blocks */
int new_packing_locality:1; /* new_packig_locality is created; new blocks unsigned new_packing_locality:1; /* new_packig_locality is created; new blocks
* for the contents of this directory should be * for the contents of this directory should be
* displaced */ * displaced */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment