summaryrefslogtreecommitdiff
path: root/drivers/mca
AgeCommit message (Collapse)Author
2012-05-17MCA: delete all remaining traces of microchannel bus support.Paul Gortmaker
Hardware with MCA bus is limited to 386 and 486 class machines that are now 20+ years old and typically with less than 32MB of memory. A quick search on the internet, and you see that even the MCA hobbyist/enthusiast community has lost interest in the early 2000 era and never really even moved ahead from the 2.4 kernels to the 2.6 series. This deletes anything remaining related to CONFIG_MCA from core kernel code and from the x86 architecture. There is no point in carrying this any further into the future. One complication to watch for is inadvertently scooping up stuff relating to machine check, since there is overlap in the TLA name space (e.g. arch/x86/boot/mca.c). Cc: Thomas Gleixner <tglx@linutronix.de> Cc: James Bottomley <JBottomley@Parallels.com> Cc: x86@kernel.org Acked-by: Ingo Molnar <mingo@elte.hu> Acked-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2009-03-24mca: struct device - replace bus_id with dev_name(), dev_set_name()Kay Sievers
Cc: James.Bottomley@HansenPartnership.com Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2008-07-21driver core: remove DEVICE_NAME_SIZE defineKay Sievers
There is no such thing as a "device name size" in the driver core, so remove the define and fix up any users of this odd define in the rest of the kernel. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-04-29proc: remove proc_root from driversAlexey Dobriyan
Remove proc_root export. Creation and removal works well if parent PDE is supplied as NULL -- it worked always that way. So, one useless export removed and consistency added, some drivers created PDEs with &proc_root as parent but removed them as NULL and so on. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29remove mca_is_adapter_used()Adrian Bunk
Remove the no longer used mca_is_adapter_used(). Signed-off-by: Adrian Bunk <bunk@kernel.org> Cc: James Bottomley <James.Bottomley@steeleye.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-09mca: add integrated device bus matchingJames Bottomley
The MCA bus has a few "integrated" functions, which are effectively virtual slots on the bus. The problem is that these special functions don't have dedicated pos IDs, so we have to manufacture ids for them outside the pos space ... and these ids can't be matched by the standard matching function, so add a special registration that requests a list of pos ids or a particular integrated function. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-09mca: fix bus matchingJames Bottomley
There's a bug in the MCA bus matching algorithm in that it promotes from signed short to int before comparing with the actual id and does sign extension on anything > 0x7fff (which means that pos ids > 0x7fff never get correctly matched). Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2006-10-11[PATCH] drivers/mca: handle sysfs errorsJeff Garzik
Also includes a kmalloc->kzalloc cleanup. Signed-off-by: Jeff Garzik <jeff@garzik.org> Cc: James Bottomley <James.Bottomley@steeleye.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-30[PATCH] fix missing includesTim Schmielau
I recently picked up my older work to remove unnecessary #includes of sched.h, starting from a patch by Dave Jones to not include sched.h from module.h. This reduces the number of indirect includes of sched.h by ~300. Another ~400 pointless direct includes can be removed after this disentangling (patch to follow later). However, quite a few indirect includes need to be fixed up for this. In order to feed the patches through -mm with as little disturbance as possible, I've split out the fixes I accumulated up to now (complete for i386 and x86_64, more archs to follow later) and post them before the real patch. This way this large part of the patch is kept simple with only adding #includes, and all hunks are independent of each other. So if any hunk rejects or gets in the way of other patches, just drop it. My scripts will pick it up again in the next round. Signed-off-by: Tim Schmielau <tim@physik3.uni-rostock.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-25[PATCH] unexport mca_find_device_by_slotAdrian Bunk
I didn't find any possible modular usage of mca_find_device_by_slot in the kernel, and this patch therefore removes the EXPORT_SYMBOL. This patch should be safe since mca-legacy is nothing drivers should move to. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-20[PATCH] Driver Core: drivers/i2c/chips/w83781d.c - ↵Yani Ioannou
drivers/s390/block/dcssblk.c: update device attribute callbacks Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-01-07[PATCH] small MCA cleanupsAdrian Bunk
The patch below does the following cleanups in the MCA code: - make some needlessly global code static - remove three unused global functions from mca-legacy.c (two of them were EXPORT_SYMBOL'ed); this should IMHO be safe since mca-legacy is not an API drivers should move to Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: James Bottomley <James.Bottomley@SteelEye.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-03-13[PATCH] move consistent_dma_mask to the generic deviceAndrew Morton
From: James Bottomley <James.Bottomley@SteelEye.com> pci_dev.consistent_dma_mask was introduced to get around problems in the IA64 Altix machine. Now, we have a use for it in x86: the aacraid needs coherent memory in a 31 bit address range (2GB). Unfortunately, x86 is converted to the dma model, so it can't see the pci_dev by the time coherent memory is allocated. The solution to all of this is to move pci_dev.consistent_dma_mask to dev.coherent_dma_mask and make x86 use it in the dma_alloc_coherent() calls. This should allow me to make the aacraid set the coherent mask instead of using it's current dma_mask juggling.
2003-10-21[PATCH] Fix another CONFIG_MCA=y oopsAndrew Morton
If you have an MCA kernel on non-MCA hardware and load an MCA driver, mca_find_unused_adapter() ends up dereferencing NULL. Teach it about the absence of MCA buses.
2003-10-21[PATCH] Fix oops with CONFIG_MCA=yAndrew Morton
With CONFIG_MCA=y and no MCA bus present, drivers go oops deep in the kobject code when calling mca_register_driver(). Because there is no MCA subsystem registered against the driver. Plug this in mca_register_driver().
2003-09-27[MCA] convert mca-proc to use not-deprecated functionsJeff Garzik
2003-09-27[MCA] include linux/mca-legacy.h directly, to access deprecated MCA APIJeff Garzik
2003-08-17More EISA/MCA fixups for removal of 'name' member in device struct.Linus Torvalds
2003-08-17[PATCH] Fix MCA for driver core updateJames Bottomley
This should fix the MCA problems. I moved the name field to the struct mca_device because it was in such extensive use, and this approach caused the least impact.
2003-05-25[PATCH] drivers/* strlcpy conversionsBen Collins
Well, this is it for me and strlcpy. I'll leave the rest of the non-obvious usages of strncpy to the kernel janitors. Seems like quite a few uses really wanted memcpy instead, but I don't have time to investigate them all. It does appear that nearly all strncpy's will be removable. Obsoleting strncpy will probably atleast make the remaining few think about how they are using it. This is the patch for my trip through drivers/*.
2003-04-29[PATCH] config menu cleanupsAndrew Morton
From Robert Day, through "Randy.Dunlap" <rddunlap@osdl.org> This is a patch from Robert Day that does the following: 1) shift menu item in "Processor type and features" menu 2) clean up "Bus options" menu so it's actually hierarchical Part of it (moving X86_IO_APIC around) looked a little odd to me, so I asked Roman Zippel about it, and he replied: "It's correct, although I wouldn't call it a 'design quirk'. :) It forces one to group options which belong logically together and in this case X86_IO_APIC is really a bit misplaced, even if it's not visible." I have tested it (on 2.5.68-plain) and it does indeed make the menus more hierarchical.
2003-02-03kbuild: Remove export-objs := ... statementsKai Germaschewski
One of the goals of the whole new modversions implementation: export-objs is gone for good!
2003-01-12sysfs: Fixup MCA sysfs files.Patrick Mochel
- Remove count and off parameters from show() methods. - Remove manual handling of reading from an offset, since the sysfs core handles that now. - Remove temp. buffer.
2002-12-14[PATCH] Remove Rules.make from Makefiles (2/3)Brian Gerst
Makefiles no longer need to include Rules.make, which is currently an empty file. This patch removes it from the drivers tree Makefiles.
2002-12-06mca-sysfs update to new bus_for_each_dev syntaxJames Bottomley
2002-11-22make MCA_PROC_FS depend on PROC_FSJames Bottomley
2002-11-22mca-sysfs-VIJames Bottomley
Make proc and legacy depend on compile options.
2002-11-22add mca-driver.c fileJames Bottomley
2002-11-22add mca-driver handlingJames Bottomley
Tidies up the handling of MCA drivers
2002-11-22make mca-bus.c use generic device dma_maskJames Bottomley
2002-11-22MCA sysfs Part II - abstract out the hw specific piecesJames Bottomley
Just in case some raving lunatic wants to add other platform support for MCA (like RS6000) Abstract the hardware pieces from the general MCA bus handling Make all bus and pos accesses go through special accessor registers add transform functions for multiple MCA bus machines
2002-11-22MCA sysfs changesJames Bottomley
These changes make MCA use sysfs. They export the identical api to the previous MCA functions, but now everything operates in terms of sysfs struct devices.