Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ide.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/major.h>
#include <linux/errno.h>
#include <linux/genhd.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/ide.h>
#include <linux/hdreg.h>
#include <linux/completion.h>
#include <linux/device.h>

Go to the source code of this file.

Data Structures

struct  chs_geom
 

Macros

#define param_check_ide_dev_mask(name, p)   param_check_uint(name, p)
 

Functions

int ide_device_get (ide_drive_t *drive)
 
 EXPORT_SYMBOL_GPL (ide_device_get)
 
void ide_device_put (ide_drive_t *drive)
 
 EXPORT_SYMBOL_GPL (ide_device_put)
 
 EXPORT_SYMBOL_GPL (ide_bus_type)
 
 EXPORT_SYMBOL_GPL (ide_vlb_clk)
 
 module_param_named (vlb_clock, ide_vlb_clk, int, 0)
 
 MODULE_PARM_DESC (vlb_clock,"VLB clock frequency (in MHz)")
 
 EXPORT_SYMBOL_GPL (ide_pci_clk)
 
 module_param_named (pci_clock, ide_pci_clk, int, 0)
 
 MODULE_PARM_DESC (pci_clock,"PCI bus clock frequency (in MHz)")
 
 module_param_named (nodma, ide_nodma, ide_dev_mask, 0)
 
 MODULE_PARM_DESC (nodma,"disallow DMA for a device")
 
 module_param_named (noflush, ide_noflush, ide_dev_mask, 0)
 
 MODULE_PARM_DESC (noflush,"disable flush requests for a device")
 
 module_param_named (nohpa, ide_nohpa, ide_dev_mask, 0)
 
 MODULE_PARM_DESC (nohpa,"disable Host Protected Area for a device")
 
 module_param_named (noprobe, ide_noprobe, ide_dev_mask, 0)
 
 MODULE_PARM_DESC (noprobe,"skip probing for a device")
 
 module_param_named (nowerr, ide_nowerr, ide_dev_mask, 0)
 
 MODULE_PARM_DESC (nowerr,"ignore the ATA_DF bit for a device")
 
 module_param_named (cdrom, ide_cdroms, ide_dev_mask, 0)
 
 MODULE_PARM_DESC (cdrom,"force device as a CD-ROM")
 
 module_param_call (chs, ide_set_disk_chs, NULL, NULL, 0)
 
 MODULE_PARM_DESC (chs,"force device as a disk (using CHS)")
 
 module_param_call (ignore_cable, ide_set_ignore_cable, NULL, NULL, 0)
 
 MODULE_PARM_DESC (ignore_cable,"ignore cable detection")
 
void ide_port_apply_params (ide_hwif_t *hwif)
 
 module_init (ide_init)
 
 module_exit (ide_exit)
 
 MODULE_LICENSE ("GPL")
 

Variables

struct classide_port_class
 
struct bus_type ide_bus_type
 
int ide_vlb_clk
 
int ide_pci_clk
 

Macro Definition Documentation

#define param_check_ide_dev_mask (   name,
  p 
)    param_check_uint(name, p)

Definition at line 207 of file ide.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ide_device_get  )
EXPORT_SYMBOL_GPL ( ide_device_put  )
EXPORT_SYMBOL_GPL ( ide_bus_type  )
EXPORT_SYMBOL_GPL ( ide_vlb_clk  )
EXPORT_SYMBOL_GPL ( ide_pci_clk  )
int ide_device_get ( ide_drive_t drive)

ide_device_get - get an additional reference to a ide_drive_t : device to get a reference to

Gets a reference to the ide_drive_t and increments the use count of the underlying LLDD module.

Definition at line 71 of file ide.c.

void ide_device_put ( ide_drive_t drive)

ide_device_put - release a reference to a ide_drive_t : device to release a reference on

Release a reference to the ide_drive_t and decrements the use count of the underlying LLDD module.

Definition at line 98 of file ide.c.

void ide_port_apply_params ( ide_hwif_t hwif)

Definition at line 355 of file ide.c.

module_exit ( ide_exit  )
module_init ( ide_init  )
MODULE_LICENSE ( "GPL"  )
module_param_call ( chs  ,
ide_set_disk_chs  ,
NULL  ,
NULL  ,
 
)
module_param_call ( ignore_cable  ,
ide_set_ignore_cable  ,
NULL  ,
NULL  ,
 
)
module_param_named ( vlb_clock  ,
ide_vlb_clk  ,
int  ,
 
)
module_param_named ( pci_clock  ,
ide_pci_clk  ,
int  ,
 
)
module_param_named ( nodma  ,
ide_nodma  ,
ide_dev_mask  ,
 
)
module_param_named ( noflush  ,
ide_noflush  ,
ide_dev_mask  ,
 
)
module_param_named ( nohpa  ,
ide_nohpa  ,
ide_dev_mask  ,
 
)
module_param_named ( noprobe  ,
ide_noprobe  ,
ide_dev_mask  ,
 
)
module_param_named ( nowerr  ,
ide_nowerr  ,
ide_dev_mask  ,
 
)
module_param_named ( cdrom  ,
ide_cdroms  ,
ide_dev_mask  ,
 
)
MODULE_PARM_DESC ( vlb_clock  ,
"VLB clock frequency (in MHz)"   
)
MODULE_PARM_DESC ( pci_clock  ,
"PCI bus clock frequency (in MHz)"   
)
MODULE_PARM_DESC ( nodma  ,
"disallow DMA for a device  
)
MODULE_PARM_DESC ( noflush  ,
"disable flush requests for a device  
)
MODULE_PARM_DESC ( nohpa  ,
"disable Host Protected Area for a device  
)
MODULE_PARM_DESC ( noprobe  ,
"skip probing for a device  
)
MODULE_PARM_DESC ( nowerr  ,
"ignore the ATA_DF bit for a device  
)
MODULE_PARM_DESC ( cdrom  ,
"force device as a CD-ROM  
)
MODULE_PARM_DESC ( chs  ,
"force device as a disk (using CHS)"   
)
MODULE_PARM_DESC ( ignore_cable  ,
"ignore cable detection"   
)

Variable Documentation

struct bus_type ide_bus_type
Initial value:
= {
.name = "ide",
.match = ide_bus_match,
.uevent = ide_uevent,
.probe = generic_ide_probe,
.remove = generic_ide_remove,
.shutdown = generic_ide_shutdown,
.dev_attrs = ide_dev_attrs,
.suspend = generic_ide_suspend,
.resume = generic_ide_resume,
}

Definition at line 154 of file ide.c.

int ide_pci_clk

Definition at line 174 of file ide.c.

struct class* ide_port_class

Definition at line 62 of file ide.c.

int ide_vlb_clk

Definition at line 168 of file ide.c.