aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/interface.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2004-06-09[PATCH] Driver Core: Whitespace fixesDmitry Torokhov1-9/+9
Whitespace and formatting changes (a,b,c -> a, b, c) in drivers/base Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2003-08-14mergeGreg Kroah-Hartman1-8/+0
2003-08-14Driver Core: remove struct device.name as it is not neededGreg Kroah-Hartman1-8/+0
If a specific driver subsystem needs a name field, they should implement it for just that subsystem.
2003-08-13[driver model] Remove 'power' file in favor of 'power' directory. Patrick Mochel1-70/+0
- Only present when CONFIG_PM=y. - Contains 'state' file for controlling power state with new PM infrastructure.
2003-08-13[driver model] Allow per-device shutdown or suspend on driver detach.Patrick Mochel1-0/+32
- Add struct device::detach_state, which tells the core what state to put the device in when it's detached from its driver (on module removal). This is a value in the range of 0-4, with 0 being On and meaning 'Do Nothing', 4 being Off, meaing calling ->shutdown() for the device, and 1-3 being low-power states, meaning call ->suspend() for the device. - Add per-device sysfs file 'detach_state' to control the value of the field. - Add device_device_shutdown() function, and call it from bus.c:: device_detach_driver().
2003-06-03[driver model] Update copyrights and license statements. Patrick Mochel1-2/+6
It's a slow afternoon.
2003-01-12sysfs: reinstate count parameter to sysfs_ops.store() methods.Patrick Mochel1-2/+2
- Fixup struct device_attribute. - Fix the default device attributes.
2003-01-09sysfs: fix up device attribute read/write methods.Patrick Mochel1-9/+6
Remove @off and @count from the sysfs_ops, and the core attribute methods.
2002-11-16[PATCH] Add some missing includes to drivers/baseMatthew Wilcox1-0/+1
drivers/base relies on device.h pulling in sched.h pulling in the rest of the world. Add some explicit dependencies in preparation for removing sched.h from device.h.
2002-10-29driver model: convert devices to use kobjects and sysfs.Patrick Mochel1-3/+3
- Define a device subsystem and register it on startup. - Fill it in with fields converted from driverfs-style fields. - Convert device_{create,remove}_file() to create files in sysfs. - Add default device attributes to device subsystem. - Make sure devices get proper kobject familial pointers and that the kobjects are registered.
2002-10-16driver model: change struct device::present to enumerated value with ↵Patrick Mochel1-1/+1
multiple states. Adapted from Greg KH: - add multiple possible enumerated states a device can be in: UNINITIALIZED, INITIALIZED, REGISTERED, and GONE. - Check whether device is INITIALIZED or REGISTERED in device_present(). - Change struct device::current_state to ::power_state to better reflect what it is.
2002-08-07Change DEVICE_ATTR, BUS_ATTR, and DRIVER_ATTR macros to not take a '_str' Patrick Mochel1-2/+2
parameter, and just __stringify the name instead. Update all the users of the macros.
2002-07-31Convert users of struct device_attribute to initialize the structs using Patrick Mochel1-13/+5
DEVICE_ATTR macro.
2002-07-30driverfs: Change the name of struct driver_file_entry to struct device_attributePatrick Mochel1-3/+3
It may seem gratuitous, but it's what we really want. driverfs files are meant to expose attributes of various kernel objects, so in that sense, the change adds more accurate meaning to the object. Plus, we will soon gain the ability to expose attributes of drivers (both device and bus) themselves, and we want to be able to have each mean something reasonable. This changes driverfs and the device model core (but none of the other users)
2002-05-29driverfs: Remove default 'status' file: it had no useful read information, ↵Patrick Mochel1-70/+0
the commands it supported were minimal and probably broken and the comments were wrong.
2002-02-12device model/driverfs updatesPatrick Mochel1-19/+19
2002-02-08[PATCH] includes cleanup, 2nd try.Dave Jones1-0/+2
Big bits first, I'll redo the smaller bits tomorrow after some sleep. Same as last time, rediffed against pre5
2002-02-05[PATCH] driver model updates (3/5)Patrick Mochel1-17/+14
Patch 3: Make default callbacks simpler. I want to move as much to a 1 file/1 value model as possible. I haven't come up with a clean way to enforce it except via social pressure. This patch is a step in that direction. It: - Reduces the output of 'power' to just the decimal state of the device - Adds a 'name' file which exports just the device name - Reduces the 'status' file to just export the bus ID. (This will change, since the bus ID is obvious based on what directory you're in, but it's another patch at another time)
2002-02-05v2.5.2.6 -> v2.5.3v2.5.3Linus Torvalds1-1/+1
- Doug Ledford: i810 audio driver update - Evgeniy Polyakov: update various SCSI drivers to new locking - David Howells: syscall latency improvement, try 2 - Francois Romieu: dscc4 driver update - Patrick Mochel: driver model fixes - Andrew Morton: clean up a few details in ext3 inode initialization - Pete Wyckoff: make x86 machine check print out right address.. - Hans Reiser: reiserfs update - Richard Gooch: devfs update - Greg KH: USB updates - Dave Jones: PNPBIOS - Nathan Scott: extended attributes - Corey Minyard: clean up zlib duplication (triplication..)
2002-02-05v2.5.2.5 -> v2.5.2.6Linus Torvalds1-0/+174
- Asit Mallick: mtrr update - Patrick Mochel: split up kernel/device.c into drivers/base - Mikael Pettersson/Al Viro: fix missing in-core inode initialization in ext2 introduced by Al's inode trimming - David Miller: sparc and network updates - Frank Davis: firewire video mmap page remapping fix - me: fix configure help scripts to fix breakage noticed by Dave Jones - Greg KH: USB updates - Kai Germaschewski: ISDN fixes, Config.help entries - Douglas Gilbert: SCSI doc update - Ingo Molnar: x86 taskswitch optimizations, scheduler updates - Mikael Pettersson: make APIC work on old external setups - Al Viro: more inode trimming