- 25 May, 2003 40 commits
-
-
Alexander Viro authored
new fields in struct inode - i_cdev and i_cindex. When we do open() on a character device we cache result of cdev lookup in inode and put the inode on a cyclic list anchored in cdev. If we already have that done, we don't bother with any lookups. When inode disappears it's removed from the list. When cdev gets unregistered we remove all cached references to it (and remove such inodes from the list). cdev is held until final fput() now.
-
Alexander Viro authored
New object: struct cdev. It contains a kobject, a pointer to file_operations and a pointer to owner module. These guys have a search structure of the same sort as gendisks and chrdev_open() picks file_operations from them. Intended use: embed such animal in driver-owned structure (e.g. tty_driver) and register it as associated with given range of device numbers. Generic code will do lookup for such object and use it for the rest. The behaviour of register_chrdev() is _not_ changed - it allocates struct cdev and registers it; any old driver will work as if nothing had changed. On that stage we only use it during chrdev_open() to find file_operations. Later it will be cached in inode->i_cdev (and index in range - in inode->i_cindex) so that ->open() could get whatever objects it wants directly without any special-cased lookups, etc.
-
Alexander Viro authored
code responsible for gendisk lookups taken out in drivers/base and generalized - now it allows to have a range-based mapping from numbers to kobjects for given struct subsystem.
-
Alexander Viro authored
register_chrdev_region() sanitized, code in tty_io.c that dealt with it cleaned up.
-
Alexander Viro authored
preparation to cdev-cidr - the lookup mechanism for gendisks is switched to dealing with disk->kobj instead of disk.
-
Alexander Viro authored
pt.c fed through Lindent
-
Alexander Viro authored
Remove cpp abuses - same as had been done for pd/pf/pcd.
-
Alexander Viro authored
Remove the rest of cpp abuse in pg.c
-
Alexander Viro authored
pg.c fed through Lindent
-
Alexander Viro authored
This removes cpp abuses - same as had been done for pd/pf/pcd.
-
Alexander Viro authored
This restores the special-case behaviour of open() on the minor 0; cpqarray allows to open that guy for ioctls even if nothing is configured. That got broken when gendisk patches went in. Patch restores the old behaviour by keeping gendisk for the first disk on controller always registered; instead of unregistering it we set size to 0.
-
Alexander Viro authored
This fixes the TIOCCONS race; it's the same as the 2.4 patch except for a fix for a brown-paperbag bug in it.
-
Geert Uytterhoeven authored
Forgot to remove include/asm-ppc/linux_logo.h when integrating the new logo code.
-
Geert Uytterhoeven authored
Atafb bug in #if 0 code (from 2.4.x)
-
Geert Uytterhoeven authored
Use new wd33c93_{abort,host_reset}() routines introduced in 2.5.67 in the m68k wd33c93-based SCSI host adapter drivers: - Amiga A2091 SCSI - Amiga A3000 SCSI - Amiga GVP Series II SCSI - MVME147 SCSI These drivers still have to implement their own adapter-specific bus_reset() routines!
-
Geert Uytterhoeven authored
Kill warning about unused static functions if HAVE_ARCH_GET_SIGNAL_TO_DELIVER is defined.
-
Geert Uytterhoeven authored
Q40/Q60 IDE: Use the standard IDE operations, which are always MMIO on m68k, but make sure IDE shows up in /proc/ioports (from Richard Zidlicky).
-
Geert Uytterhoeven authored
M68k raw I/O updates: - Convert raw I/O access macros to inline functions: o raw_{in,out}s[bw]() o raw_{in,out}sw_swapw() - Add raw_{in,out}sl() (needed for IDE) - Update isa_[im]t_[bw]() for stricter type checking of inline functions
-
Geert Uytterhoeven authored
Amifb: Updates for fbdev changes in 2.5.66 and 2.5.68: - Last parameter of fb_{fillrect,copyarea,imageblit}() became const
-
Geert Uytterhoeven authored
IDE I/O operations clean ups: - Kill warning about void return type not being ignored - Fix comment: Q40/Q60 also has a byte-swapped IDE interface
-
Geert Uytterhoeven authored
M68k IDE: - Update for new-style low-level IDE operations. Since so far no single m68k platform uses ISA/PCI I/O space for IDE, we always use the `raw' MMIO versions. - ATA_ARCH_LOCK was renamed to IDE_ARCH_LOCK - Define ide_ack_intr() and set IDE_ARCH_ACK_INTR
-
Geert Uytterhoeven authored
Resurrect dmasound: - Re-add dmasound to the build process - Update dmasound.h, which got missed in the dmasound update in 2.5.15 - Compile fixes for core, Atari, Amiga Paula, and Q40: o Update for s/MINOR/minor/g changes o Add missing <linux/interrupt.h> o Fix spinlock typo
-
Geert Uytterhoeven authored
M68k: Use ptrace_check_attach instead of doing the checks ourselves (from Andreas Schwab).
-
Geert Uytterhoeven authored
M68k: Fix sys_ipc() to return ENOSYS instead of EINVAL as appropriate.
-
Geert Uytterhoeven authored
SCSI: hosts.c uses CONFIG_*, hence it needs to include <linux/config.h>
-
Geert Uytterhoeven authored
M68k: Add pte_file() for Motorola MMUs (from Roman Zippel): - Add support for file file offsets in pte's (recycle unused _PAGE_COW bit) - Move swap macros into the mmu specific header - Fix swap macros (lowest two bits must be cleared)
-
Geert Uytterhoeven authored
M68k IDE: kill ide_ioreg_t and q40ide_ioreg_t
-
Geert Uytterhoeven authored
AFS and RXRPC: times must be unsigned long
-
Geert Uytterhoeven authored
Atyfb fixes for Atari (got reversed in 2.5.69): - Add missing allocation of default_par - Kill warnings in assignments
-
Geert Uytterhoeven authored
Ataflop: fix breakage after recent cleanups
-
Geert Uytterhoeven authored
M68k fbdev drivers: Update to the new irq API (from Roman Zippel and me) [20/20]
-
Geert Uytterhoeven authored
M68k SCSI drivers: Update to the new irq API (from Roman Zippel and me) [19/20]
-
Geert Uytterhoeven authored
M68k parport drivers: Update to the new irq API (from Roman Zippel and me) [18/20]
-
Geert Uytterhoeven authored
M68k net drivers: Update to the new irq API (from Roman Zippel and me) [17/20]
-
Geert Uytterhoeven authored
M68k mac drivers: Update to the new irq API (from Roman Zippel and me) [16/20]
-
Geert Uytterhoeven authored
M68k input drivers: Update to the new irq API (from Roman Zippel and me) [15/20]
-
Geert Uytterhoeven authored
M68k char drivers: Update to the new irq API (from Roman Zippel and me) [14/20]
-
Geert Uytterhoeven authored
M68k block drivers: Update to the new irq API (from Roman Zippel and me) [13/20]
-
Geert Uytterhoeven authored
M68k Sun-3x: Update to the new irq API (from Roman Zippel and me) [12/20]
-
Geert Uytterhoeven authored
M68k Sun-3: Update to the new irq API (from Roman Zippel and me) [11/20]
-