linux/drivers/ata/pata_acpi.c
<<
lue=11lue=11>>lulue=lue=11 ">lue=11lue=11Searchlue=11Prefs. 11lulu ">le=11 1.
1 11/*1 12 *e=11 1ACPI PATA driver1 13 *1 14 *e=11 1(c) 2007 Red Hat1 15 */1 16l1 17#include <linux/kernel.h>l1 18#include <linux/module.h>l1 19#include <linux/pci.h>l1 a>#include <linux/n> 1c/pata_an> einclude/linux/n> 1 a>#incline" namt;/*1 a>#incldelayamt; 1 18#includdevicam t; *1 18#includgfpm t; 1 18#scsi.scsi_h */1 18#ass=.ass=_busm t;1 16l1 18#includlibL6"m t;1 18#includL6"m t;linux2pci.h>llinux/2> 1c/pata_an> einclu2e/lin2x/n> defa_a/buttio3. 1code=DRV_NAMEbottim">#DRV_NAME/n> ta/pata_acpi.strax_">" L6" clas"1" class="line" nam L1">1 11/* defa_a/buttio3. 1code=DRV_VERSIONbottim">#DRV_VERSION/n> ta/pata_acpi.strax_">"0.2.3"1" class="line" nam L1">1 11 *# L6" clas/n> {ta/pata_acpi.c#L6" id L6" class="l2(c) 20072 Red Hat#L6" clas_gtm/n> buttio3. 1code=gtmbottim">#gtm/n> ef="include/linux/inut.h" class="fre2ss="comm2ent"> */#> *t/n> ef="include/linux/inut.h" class="fre2ine" nam2 L6">1 16l#mask/n> [2]ef="include/linux/inut.h" class="fre2>linux/k2ernel.h>llinux3pci.h>l1 13linux/3> 1c/pata_an> einclu3e/lin3ers/ata/pata_acpi.c#L1" id L4" clapclas_pree=11et - check for 40/80 pin3" class="line" nam L3">1 13/*1 14 *e=11 13ACPI PATAA driverluL4">1 14 *e=11 13ass="com3ment"> *1 14 *e=11 13(c) 20073 Red Hat1 14 *e=11 13ss="comm3ent"> */1 151 16l stnux+ int/buttio3. 1code= Llas_pree=11etbottim"># Llas_pree=11et/n> (struct/buttio3. 1code=L6" >&gkbottim">#L6" >&gk/n> L3uttio3. 1code=>&gkbottim">#>&gk/n> , unsignnamlong buttio3. 1code=deadspavbottim">#deadspav/n> )ta/pata_acpi.c#L6" id L6" class="l3>linux/m3odule.h>llinux4pci.h>l#L6" por L4> L3uttio3. 1code=apbottim">#LpL4> =/buttio3. 1code=>&gkbottim">#>&gk/n> - hre3uttio3. 1code=apbottim">#LpL4> ef="include/linux/inut.h" class="fre4">linux/4> 1c/pata_an> einclu4e/lin41/n> struct/buttio3. 1code= L6" clasbottim"># L6" clas/n> L3uttio3. 1code=alasbottim">#clas/n> =/buttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=plinate_dL6"bottim"># linate_dL6"L4> ef="include/linux/inut.h" class="fre4ass="com4ment">/*#L6" cp clas_handlv/n> (buttio3. 1code=apbottim">#LpL4> ) ==/buttio3. 1code=NULLbottim">#NULL/n> ||/buttio3. 1code=L6" clas_gtmbottim">#L6" clas_gtm/n> (buttio3. 1code=apbottim">#LpL4> , &e3uttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> )acpi. 0)ta/pata_acpi.c#L6" id L6" class="l4ACPI PAT4A driver#ENODEVL4> ef="include/linux/inut.h" class="fre4ass="commment"> * /div3.ebuttio3. 1code=L6" sff_pre=11etbottim">#L6" sff_pre=11et/n> (buttio3. 1code=>&gkbottim">#>&gk/n> , buttio3. 1code=deadspavbottim">#deadspav/n> )ef="include/linux/inut.h" class="fre4ss="comm4ent"> */1 16l1 13linux/m4odule.h>l1 14 *e=11 15f">linux5pci.h>l1 14 *e=11 15">linux/5> 1c/pata_an> einclu5e/lin5ers/ata/pata_acpi.c#L1" id LL4">1 14 *e=11 15ass="com5ment">/*luL4">1 14 *e=11 15ACPI PAT5A driver1 15 * stnux+ int/buttio3. 1code= Llas_cable_detectbottim"># Llas_cable_detect/n> (struct/buttio3. 1code=L6" por bottim">#L6" por L4> L3uttio3. 1code=apbottim">#LpL4> )ta/pata_acpi.c#L6" id L6" class="l5ss="comm5ent"> */1 16l# L6" clas/n> L3uttio3. 1code=alasbottim">#clas/n> =/buttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=plinate_dL6"bottim"># linate_dL6"L4> ef="include/linux/inut.h" class="fre5>linux/k5ernel.h>l if ((buttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=maskbottim">#mask/n> [0] |/buttio3. 1code=Llasbottim">#clas/n> - hre3uttio3. 1code=maskbottim">#mask/n> [1]) &e (0xF8acpi.cpi. 3uttio3. 1code=ATA_SHIFT_UDMAbottim">#ATA_SHIFT_UDMAL4> ))ta/pata_acpi.c#L6" id L6" class="l6f">linux6pci.h>l#ATA_CBL_ine"80L4> ef="include/linux/inut.h" class="fre6">linux/6> 1c/pata_an> einclu6e/lin61/n> elsef="include/linux/inut.h" class="fre6ass="com6ment">/*#ATA_CBL_ine"40L4> ef="include/linux/inut.h" class="fre6ACPI PAT6A driver *1 13 */1 131 16l1 13linux/k6ernel.h>l1 13linux/m6odule.h>l1 13linux7pci.h>l1 13linux/7> 1c/pata_an> einclu7e/lin7ers/ata/pata_acpi.c#L1" id L4" cla1et upa1ensibly. Fros(this we get a mask ofass="lmodes we cpatusa3" class="line" nam L3">1 13/*1 15 *# Llas_disco L_modes/n> (struct/buttio3. 1code=L6" por bottim">#L6" por L4> L3uttio3. 1code=apbottim">#LpL4> , struct/buttio3. 1code=L6" nevicabottim">#L6" nevica3"> L3uttio3. 1code=anevbottim">#LnevL4> )ta/pata_acpi.c#L6" id L6" class="l7(c) 20077 Red Hat */# L6" clas/n> L3uttio3. 1code=alasbottim">#clas/n> =/buttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=plinate_dL6"bottim"># linate_dL6"L4> ef="include/linux/inut.h" class="fre7ine" nam L6">1 16l struct/buttio3. 1code=L6" clas_gtmbottim">#L6" clas_gtm/n> /buttio3. 1code= robabottim"># robaL4> ef="include/linux/inut.h" class="fre7>linux/k7ernel.h>l#xf L_maskL4> ef="include/linux/inut.h" class="fre7>linux/m7odule.h>llinux8pci.h>l# robaL4> =/buttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> include/linux/kernel.h" class="fref">">linux/8> 1c/pata_an> einclu8e/lin81rs/ata/pata_acpi.c#L6" id L6" class="l8ass="com8ment">/*#L6" clas_gtm/n> (buttio3. 1code=apbottim">#LpL4> , &e3uttio3. 1code= robabottim"># robaL4> )ef="include/linux/inut.h" class="fre8ACPI PAT8A driver *#xf L_maskL4> =/buttio3. 1code=a6" clas_gtm_xf Lmaskbottim">#a6" clas_gtm_xf Lmask/n> (buttio3. 1code=anevbottim">#LnevL4> , &e3uttio3. 1code= robabottim"># robaL4> )ef="include/linux/inut.h" class="fre8(c) 20078 Red Hat */#xf L_maskL4> &e (0xF8acpi.cpi. 3uttio3. 1code=ATA_SHIFT_UDMAbottim">#ATA_SHIFT_UDMAL4> ))ta/pata_acpi.c#L6" id L6" class="l8ine" nam8 L6">1 16l#LpL4> - hre3uttio3. 1code=cblbottim">#cblL4> =/buttio3. 1code=ATA_CBL_ine"80bottim">#ATA_CBL_ine"80L4> ef="include/linux/inut.h" class="fre8>linux/keernel.h>l /div3.ebuttio3. 1code=xf L_maskbottim">#xf L_maskL4> ef="include/linux/inut.h" class="fre9f">linux9pci.h>llinux/9> 1c/pata_an> einclu9e/lin91rs/ata/pata_acpi.c#L6" id L6" class="l9ass="com9ment">/*1 131 13 *1 131 13 */1 131 16l1 13linux/k9ernel.h>l1 13linux/moodule.h>l1 15linux/ppci.h>llinux/n0> 1c/pata_an> einclud01ivedr1/n> stnux+ unsignnamlong buttio3. 1code=pclas_mode_filterbottim"># Llas_mode_filter/n> (struct/buttio3. 1code=L6" nevicabottim">#L6" nevica3"> L3uttio3. 1code=anevbottim">#LnevL4> , unsignnamlong buttio3. 1code=maskbottim">#mask/n> )ta/pata_acpi.c#L6" id L6" class="l10ass="com10ment">/*# L6" clas/n> L3uttio3. 1code=alasbottim">#clas/n> =/buttio3. 1code=anevbottim">#LnevL4> - hre3uttio3. 1code=>&gkbottim">#>&gk/n> - hre3uttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=plinate_dL6"bottim"># linate_dL6"L4> ef="include/linux/inut.h" class="fre10ass="com10ment"> * /div3.ebuttio3. 1code=maskbottim">#mask/n> &e buttio3. 1code=Llasbottim">#clas/n> - hre3uttio3. 1code=maskbottim">#mask/n> [buttio3. 1code=anevbottim">#LnevL4> - hre3uttio3. 1code=nevnobottim">#devnoL4> ]ef="include/linux/inut.h" class="fre10(c) 200710 Red Hat */1 16l1 13linux/k10ernel.h>l1 13linux/m10odule.h>l1 13linux//pci.h>l1 13linux/n>> 1c/pata_an> einclude1ived1ers/ata/pata_acpi.c#L1" id L5" class="line" nam L5">1 15/*1 15# Llas_set_piomode/n> (struct/buttio3. 1code=L6" por bottim">#L6" por L4> L3uttio3. 1code=apbottim">#LpL4> , struct/buttio3. 1code=L6" nevicabottim">#L6" nevica3"> L3uttio3. 1code=anevbottim">#LnevL4> )ta/pata_acpi.c#L6" id L6" class="l1fass="com11ment"> * int/buttio3. 1code=ude bottim">#ude /n> =/buttio3. 1code=anevbottim">#LnevL4> - hre3uttio3. 1code=nevnobottim">#devnoL4> ef="include/linux/inut.h" class="fref"ss="comm11ent"> */# L6" clas/n> L3uttio3. 1code=alasbottim">#clas/n> =/buttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=plinate_dL6"bottim"># linate_dL6"L4> ef="include/linux/inut.h" class="fre1fine" nam11 L6">1 16l#L6" timax_/n> L3uttio3. 1code= bottim">#t/n> ef="include/linux/inut.h" class="fre11>linux/k11ernel.h>l if (!(buttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> .3uttio3. 1code=flagsbottim">#flags/n> &e 0x10))ta/pata_acpi.c#L6" id L6" class="l12f">linux12pci.h>l#ude /n> =/0ef="include/linux/inut.h" class="frefa">linux/n2> 1c/pata_an> einclu12e/li121rs/ata/pata_acpi.c#L6" id L6" class="l12ass="com1mment">/* ba/pata_acpi.c#L1" id L Now stuff the nSlu1 15#t/n> =/buttio3. 1code=a6" timax__find_modebottim">#a6" timax__find_mode/n> (buttio3. 1code=anevbottim">#LnevL4> - hre3uttio3. 1code=pio_modebottim">#pio_modeL4> )ef="include/linux/inut.h" class="fre12ass="com12ment"> *#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> .3uttio3. 1code=/linubottim">#dlinu/n> [buttio3. 1code=ude bottim">#ude /n> ].3uttio3. 1code=piobottim">#pio/n> =/buttio3. 1code= bottim">#t/n> - hre3uttio3. 1code=cyclvbottim">#cyclv/n> ef="include/linux/inut.h" class="fre12(c) 200712 Red Hat#L6" clas_stm/n> (buttio3. 1code=apbottim">#LpL4> , &e3uttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> )ef="include/linux/inut.h" class="fre12ss="comm12ent"> */1 151 16l#L6" clas_gtm/n> (buttio3. 1code=apbottim">#LpL4> , &e3uttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> )ef="include/linux/inut.h" class="fre12>linux/k12ernel.h>llinux13pci.h>l1 13linux/13> 1c/pata_an> einclu13e/li13ers/ata/pata_acpi.c#L1" id L4" clapclas_set_dmamode - 1et ude ial DMAlmode dL6"L4 class="line" nam L3">1 13/*1 131 13 *1 15 */# Llas_set_dmamode/n> (struct/buttio3. 1code=L6" por bottim">#L6" por L4> L3uttio3. 1code=apbottim">#LpL4> , struct/buttio3. 1code=L6" nevicabottim">#L6" nevica3"> L3uttio3. 1code=anevbottim">#LnevL4> )ta/pata_acpi.c#L6" id L6" class="l13ine" nam13 L6">1 16l int/buttio3. 1code=ude bottim">#ude /n> =/buttio3. 1code=anevbottim">#LnevL4> - hre3uttio3. 1code=nevnobottim">#devnoL4> ef="include/linux/inut.h" class="fref3>linux/m13odule.h>l# L6" clas/n> L3uttio3. 1code=alasbottim">#clas/n> =/buttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=plinate_dL6"bottim"># linate_dL6"L4> ef="include/linux/inut.h" class="fre14f">linux14pci.h>l#L6" timax_/n> L3uttio3. 1code= bottim">#t/n> ef="include/linux/inut.h" class="fre14">linux/14> 1c/pata_an> einclu14e/li141rs/ata/pata_acpi.c#L6" id L6" class="l14ass="com14ment">/*#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> .3uttio3. 1code=flagsbottim">#flags/n> &e 0x10))ta/pata_acpi.c#L6" id L6" class="l14ACPI PAT14A driver#ude /n> =/0ef="include/linux/inut.h" class="fref4ass="com1mment"> * ba/pata_acpi.c#L1" id L Now stuff the nSlu1 15 */#t/n> =/buttio3. 1code=a6" timax__find_modebottim">#a6" timax__find_mode/n> (buttio3. 1code=anevbottim">#LnevL4> - hre3uttio3. 1code=dma_modebottim">#dma_mode/n> )ef="include/linux/inut.h" class="fre14ine" nam14 L6">1 16l#LnevL4> - hre3uttio3. 1code=dma_modebottim">#dma_mode/n> hre=/buttio3. 1code=XFER_UDMA_0bottim">#XFER_UDMA_0/n> ) {ta/pata_acpi.c#L6" id L6" class="l14>linux/k14ernel.h>l#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> .3uttio3. 1code=/linubottim">#dlinu/n> [buttio3. 1code=ude bottim">#ude /n> ].3uttio3. 1code=dmabottim">#dma/n> =/buttio3. 1code= bottim">#t/n> - hre3uttio3. 1code=udmabottim">#udma/n> ef="include/linux/inut.h" class="fre14>linux/m14odule.h>l#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> .3uttio3. 1code=flagsbottim">#flags/n> |= (1acpi.cpi. (2 L2buttio3. 1code=ude bottim">#ude /n> ))ef="include/linux/inut.h" class="fre15f">linux15pci.h>llinux/15> 1c/pata_an> einclu15e/li151/n> buttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> .3uttio3. 1code=/linubottim">#dlinu/n> [buttio3. 1code=ude bottim">#ude /n> ].3uttio3. 1code=dmabottim">#dma/n> =/buttio3. 1code= bottim">#t/n> - hre3uttio3. 1code=cyclvbottim">#cyclv/n> ef="include/linux/inut.h" class="fre15ass="com15ment">/*#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> .3uttio3. 1code=flagsbottim">#flags/n> &e= ~(1acpi.cpi. (2 L2buttio3. 1code=ude bottim">#ude /n> ))ef="include/linux/inut.h" class="fre15ACPI PAT15A driver *#L6" clas_stm/n> (buttio3. 1code=apbottim">#LpL4> , &e3uttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> )ef="include/linux/inut.h" class="fre15(c) 20071 Red Hat ba/pata_acpi.c#L1" id L See whatlmode we();"ually got L5" class="line" nam L5">1 15 */#L6" clas_gtm/n> (buttio3. 1code=apbottim">#LpL4> , &e3uttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> )ef="include/linux/inut.h" class="fre15ine" nam15 L6">1 16l1 13linux16pci.h>l1 13linux/16> 1c/pata_an> einclu16e/li16ers/ata/pata_acpi.c#L1" id L4" cla@qc: c#L1and pendax_3" class="line" nam L3">1 13/*1 131 13 *1 131 14 *e=11 116ss="comm1eent"> */1 151 16l stnux+ unsignnamint/buttio3. 1code= Llas_qc_issuebottim"># Llas_qc_issue/n> (struct/buttio3. 1code=L6" queued_cmdbottim">#L6" queued_cmd/n> L3uttio3. 1code=qcbottim">#qcL4> )ta/pata_acpi.c#L6" id L6" class="l16>linux/m16odule.h>llinux17pci.h>l#L6" por L4> L3uttio3. 1code=apbottim">#LpL4> =/buttio3. 1code=qcbottim">#qcL4> - hre3uttio3. 1code=apbottim">#LpL4> ef="include/linux/inut.h" class="fre17">linux/17> 1c/pata_an> einclu17e/li171/n> struct/buttio3. 1code=L6" nevicabottim">#L6" nevica3"> L3uttio3. 1code=anevbottim">#LnevL4> =/buttio3. 1code=qcbottim">#qcL4> - hre3uttio3. 1code=nevbottim">#nevL4> ef="include/linux/inut.h" class="fre17ass="com17ment">/*# L6" clas/n> L3uttio3. 1code=alasbottim">#clas/n> =/buttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=plinate_dL6"bottim"># linate_dL6"L4> ef="include/linux/inut.h" class="fre17ACPI PAT17A driver *#clas/n> - hre3uttio3. 1code=gtmbottim">#gtm/n> .3uttio3. 1code=flagsbottim">#flags/n> &e 0x10)ta/pata_acpi.c#L6" id L6" class="l17(c) 200717 Red Hat#L6" bmdma_qc_issue/n> (buttio3. 1code=qcbottim">#qcL4> )ef="include/linux/inut.h" class="fre17ss="comm17ent"> */1 16l if (buttio3. 1code=anevbottim">#LnevL4> !=/buttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=l *tbottim">#> *t/n> ) {ta/pata_acpi.c#L6" id L6" class="l17>linux/k17ernel.h>l# Llas_set_piomode/n> (buttio3. 1code=apbottim">#LpL4> , 3uttio3. 1code=anevbottim">#LnevL4> )ef="include/linux/inut.h" class="fre17>linux/m17odule.h>l#L6" dma_enabled/n> (buttio3. 1code=anevbottim">#LnevL4> ))ta/pata_acpi.c#L6" id L6" class="l18f">linux18pci.h>l# Llas_set_dmamode/n> (buttio3. 1code=apbottim">#LpL4> , 3uttio3. 1code=anevbottim">#LnevL4> )ef="include/linux/inut.h" class="fre1>">linux/18> 1c/pata_an> einclu18e/li181/n> buttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=l *tbottim">#> *t/n> =/buttio3. 1code=anevbottim">#LnevL4> ef="include/linux/inut.h" class="fre1>ass="com18ment">/* /div3.ebuttio3. 1code=L6" bmdma_qc_issuebottim">#L6" bmdma_qc_issue/n> (buttio3. 1code=qcbottim">#qcL4> )ef="include/linux/inut.h" class="fre18ass="com18ment"> * */1 131 16l1 13linux/k1eernel.h>l1 13linux/m18odule.h>l1 13linux19pci.h>l1 13linux/19> 1c/pata_an> einclu19e/li19ers/ata/pata_acpi.c#L1" id L5" class="line" nam L5">1 15/*1 15# Llas_por _stnrt/n> (struct/buttio3. 1code=L6" por bottim">#L6" por L4> L3uttio3. 1code=apbottim">#LpL4> )ta/pata_acpi.c#L6" id L6" class="l19ass="com19ment"> * struct/buttio3. 1code=pci_nevbottim">#pci_nevL4> L3uttio3. 1code=pnevbottim">#pnevL4> =/buttio3. 1code=to_pci_nevbottim">#to_pci_nev/n> (buttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=h#h - hre3uttio3. 1code=nevbottim">#nevL4> )ef="include/linux/inut.h" class="fre19ss="comm19ent"> */# L6" clas/n> L3uttio3. 1code=alasbottim">#clas/n> ef="include/linux/inut.h" class="fre19ine" nam19 L6">1 16l if (buttio3. 1code=L6" cp clas_handlvbottim">#L6" cp clas_handlv/n> (buttio3. 1code=apbottim">#LpL4> ) ==/buttio3. 1code=NULLbottim">#NULL/n> )ta/pata_acpi.c#L6" id L6" class="l19>linux/m1oodule.h>l /div3.e-3uttio3. 1code=ENODEVbottim">#ENODEVL4> ef="include/linux/inut.h" class="fre20f">linux2ppci.h>llinux/20> 1c/pata_an> einclu201ive201/n> 3uttio3. 1code=alasbottim">#clas/n> =/buttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=plinate_dL6"bottim"># linate_dL6"L4> =/buttio3. 1code=nevm_kzallocbottim">#nevm_kzalloc/n> (&e3uttio3. 1code= nevbottim">#pnevL4> - hre3uttio3. 1code=nevbottim">#nevL4> , sizeof(struct/buttio3. 1code= L6" clasbottim"># L6" clas/n> ), 3uttio3. 1code=GFP_KERNELbottim">#GFP_KERNELL4> )ef="include/linux/inut.h" class="fre20ass="com20ment">/* if (buttio3. 1code=Lpbottim">#LpL4> - hre3uttio3. 1code=plinate_dL6"bottim"># linate_dL6"L4> ==/buttio3. 1code=NULLbottim">#NULL/n> )ta/pata_acpi.c#L6" id L6" class="l20ACPI PAT20A driver /div3.e-3uttio3. 1code=ENOMEMbottim">#ENOMEML4> ef="include/linux/inut.h" class="fre20ass="com20ment"> * buttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=maskbottim">#mask/n> [0] =/buttio3. 1code=pclas_disco L_modesbottim"># Llas_disco L_modes/n> (buttio3. 1code=apbottim">#LpL4> , &e3uttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=>&gkbottim">#>&gk/n> .3uttio3. 1code=devicabottim">#nevica3"> [0])ef="include/linux/inut.h" class="fre205ss="com20 Red Hat buttio3. 1code=alasbottim">#clas/n> - hre3uttio3. 1code=maskbottim">#mask/n> [1] =/buttio3. 1code=pclas_disco L_modesbottim"># Llas_disco L_modes/n> (buttio3. 1code=apbottim">#LpL4> , &e3uttio3. 1code=apbottim">#LpL4> - hre3uttio3. 1code=>&gkbottim">#>&gk/n> .3uttio3. 1code=devicabottim">#nevica3"> [1])ef="include/linux/inut.h" class="fre20ss="comm20ent"> */ /div3.ebuttio3. 1code=L6" bmdma_por _stnrtbottim">#L6" bmdma_por _stnrt/n> (buttio3. 1code=apbottim">#LpL4> )ef="include/linux/inut.h" class="fre20ine" nam20 L6">1 16l }f="include/linux/inut.h" class="fre20>linux/k20ernel.h>l#scss_h buttio3. 1code=pclas_shtbottim"># Llas_shtL4> =/{ta/pata_acpi.c#L6" id L6" class="l2ef">linux2/pci.h>l#ATA_BMDMA_SHT/n> (buttio3. 1code=DRV_NAMEbottim">#DRV_NAME/n> ),ta/pata_acpi.c#L6" id L6" class="l2e">linux/2>> 1c/pata_an> einclu2e1ive21ers/a}ef="include/linux/inut.h" class="fre2fass="com21ment">/*1 15lusbottim">#L6" por _opera">lus/n> buttio3. 1code=pclas_opsbottim"># Llas_opsL4> =/{ta/pata_acpi.c#L6" id L6" class="l2eass="com21ment"> *#inherits/n> = &e3uttio3. 1code=a6" bmdma_por _opsbottim">#a6" bmdma_por _opsL4> ,ta/pata_acpi.c#L6" id L6" class="l2e5ss="com21 Red Hat#qc_issue/n> = buttio3. 1code=pclas_qc_issuebottim"># Llas_qc_issue/n> ,ta/pata_acpi.c#L6" id L6" class="l2ess="comm21ent"> */#cable_detect/n> = buttio3. 1code=pclas_cable_detectbottim"># Llas_cable_detect/n> ,ta/pata_acpi.c#L6" id L6" class="l2eine" nam21 L6">1 16l#mode_filter/n> = buttio3. 1code=pclas_mode_filterbottim"># Llas_mode_filter/n> ,ta/pata_acpi.c#L6" id L6" class="l2e>linux/k21ernel.h>l#set_piomode/n> = buttio3. 1code=pclas_set_piomodebottim"># Llas_set_piomode/n> ,ta/pata_acpi.c#L6" id L6" class="l2e>linux/m21odule.h>l#set_dmamode/n> = buttio3. 1code=pclas_set_dmamodebottim"># Llas_set_dmamode/n> ,ta/pata_acpi.c#L6" id L6" class="l22f">linux22pci.h>l#pre=11et/n> = buttio3. 1code=pclas_pre_=11etbottim">#pclas_pre_=11et/n> ,ta/pata_acpi.c#L6" id L6" class="l22">linux/22> 1c/pata_an> einclu22e/li221/n> .3uttio3. 1code=por _stnrtbottim"># or _stnrt/n> = buttio3. 1code=pclas_por _stnrtbottim"># Llas_por _stnrt/n> ,ta/pata_acpi.c#L6" id L6" class="l22ass="com2mment">/* }ef="include/linux/inut.h" class="fre2aACPI PAT22A driver *1 13 */1 131 16l1 13linux/k22ernel.h>l1 13linux/m22odule.h>l1 13linux23pci.h>l1 14 *e=11 123">linux/23> 1c/pata_an> einclu23e/li23ers/ata/pata_acpi.c#L1" id LL4">1 14 *e=11 123ass="com23ment">/*1 14 *e=11 123ACPI PAT2AA driver1 14 *e=11 123ass="com23ment"> *1 14 *e=11 123(c) 200723 Red Hat1 14 *e=11 123ss="comm23ent"> */1 14 *e=11 123ine" nam23 L6">1 16l1 15linux/k23ernel.h>l# Llas_ude _one/n> (struct/buttio3. 1code= ci_nevbottim">#pci_nevL4> L3uttio3. 1code=pnevbottim">#pnevL4> , const struct/buttio3. 1code=pci_nevica_idbottim">#pci_nevica_idL4> L3uttio3. 1code=idbottim">#idL4> )ta/pata_acpi.c#L6" id L6" class="l24f">linux24pci.h>llinux/24> 1c/pata_an> einclu24e/li241/n> stnux+ const struct/buttio3. 1code=L6" por _infobottim">#L6" por _info/n> buttio3. 1code=infobottim">#info/n> =/{ta/pata_acpi.c#L6" id L6" class="l24ass="com24ment">/*#flags/n> = buttio3. 1code=ATA_FLAG_SLAVE_POSSbottim">#ATA_FLAG_SLAVE_POSS/n> ,ta/pata_acpi.c#L6" id L6" class="l24ACPI PAT24A driver * .3uttio3. 1code=pio_maskbottim">#pio_mask/n> = buttio3. 1code=ATA_PIO4bottim">#ATA_PIO4/n> ,ta/pata_acpi.c#L6" id L6" class="l24(c) 200724 Red Hat#mwdma_mask/n> = buttio3. 1code=ATA_MWDMA2bottim">#ATA_MWDMA2/n> ,ta/pata_acpi.c#L6" id L6" class="l24ss="comm24ent"> */#udma_mask/n> = buttio3. 1code=ATA_UDMA6bottim">#ATA_UDMA6/n> ,ta/pata_acpi.c#L6" id L6" class="l24ine" nam24 L6">1 16l .3uttio3. 1code=por _opsbottim"># or _opsL4> = &e3uttio3. 1code= clas_opsbottim"># Llas_opsL4> ,ta/pata_acpi.c#L6" id L6" class="l24>linux/m24odule.h>llinux25pci.h>l#L6" por _info/n> L3uttio3. 1code=pasbottim"># as/n> [] =/{ &e3uttio3. 1code=infobottim">#info/n> , 3uttio3. 1code=NULLbottim">#NULL/n> }ef="include/linux/inut.h" class="fre25">linux/25> 1c/pata_an> einclu25e/li251/n> if (buttio3. 1code= nevbottim">#pnevL4> - hre3uttio3. 1code=vendorbottim">#vendorL4> ==/buttio3. 1code=PCI_VENDOR_ID_ATIbottim">#PCI_VENDOR_ID_ATIL4> )/{ta/pata_acpi.c#L6" id L6" class="l25ass="com25ment">/*#rcL4> =/buttio3. 1code=pcim_enable_devicabottim">#pcim_enable_devica/n> (buttio3. 1code= nevbottim">#pnevL4> )ef="include/linux/inut.h" class="fre25ACPI PAT25A driver#rcL4> cpi. 0)ta/pata_acpi.c#L6" id L6" class="l25ass="com25ment"> *#rcL4> ef="include/linux/inut.h" class="fre25(c) 20072 Red Hat buttio3. 1code=pcim_pin_devicabottim">#pcim_pin_devica/n> (buttio3. 1code= nevbottim">#pnevL4> )ef="include/linux/inut.h" class="fre25ss="comm25ent"> */1 16l#L6" pci_bmdma_ude _one/n> (buttio3. 1code= nevbottim">#pnevL4> , 3uttio3. 1code=pasbottim"># as/n> , &e3uttio3. 1code= clas_shtbottim"># Llas_shtL4> , 3uttio3. 1code=NULLbottim">#NULL/n> , 0)ef="include/linux/inut.h" class="fre25>linux/k25ernel.h>llinux26pci.h>l#pci_nevica_idL4> buttio3. 1code=pclas_pci_tblbottim"># Llas_pci_tbl/n> [] =/{ta/pata_acpi.c#L6" id L6" class="l26">linux/26> 1c/pata_an> einclu26e/li261/n> {/buttio3. 1code=PCI_ANY_IDbottim">#PCI_ANY_ID/n> , buttio3. 1code=PCI_ANY_IDbottim">#PCI_ANY_ID/n> , buttio3. 1code=PCI_ANY_IDbottim">#PCI_ANY_ID/n> , buttio3. 1code=PCI_ANY_IDbottim">#PCI_ANY_ID/n> , buttio3. 1code=PCI_CLASS_STORAGE_IDEbottim">#PCI_CLASS_STORAGE_IDEL4> cpi.cpi. 8, 0xFFFFFF00UL, 1},ta/pata_acpi.c#L6" id L6" class="l26ass="com26ment">/*1 15 *#pci_ni.c#LL4> buttio3. 1code=pclas_pci_ni.c#Lbottim">#pclas_pci_ni.c#L/n> =/{ta/pata_acpi.c#L6" id L6" class="l26ss="comm2eent"> */ .3uttio3. 1code=# =/buttio3. 1code=DRV_NAMEbottim">#DRV_NAME/n> ,ta/pata_acpi.c#L6" id L6" class="l26ine" nam26 L6">1 16l#id_table/n> = buttio3. 1code=pclas_pci_tblbottim"># Llas_pci_tbl/n> ,ta/pata_acpi.c#L6" id L6" class="l26>linux/k26ernel.h>l#proba/n> = buttio3. 1code=pclas_ude _onebottim"># Llas_ude _one/n> ,ta/pata_acpi.c#L6" id L6" class="l26>linux/m26odule.h>l#remonu/n> =/buttio3. 1code=a6" pci_remonu_onebottim">#L6" pci_remonu_one/n> ,ta/pata_acpi.c#L6" id L6" class="l27f">linux27pci.h>l#CONFIG_PMrs/ata/pata_acpi.c#L6" id L6" class="l27">linux/27> 1c/pata_an> einclu27e/li271/n> .3uttio3. 1code=suspendbottim">#suspend/n> =/buttio3. 1code=a6" pci_nevica_suspendbottim">#a6" pci_nevica_suspend/n> ,ta/pata_acpi.c#L6" id L6" class="l27ass="com27ment">/*#resu h/n> =/buttio3. 1code=a6" pci_nevica_resu hbottim">#a6" pci_nevica_resu h/n> ,ta/pata_acpi.c#L6" id L6" class="l27ACPI PAT27A driver * */#module_pci_ni.c#L/n> (buttio3. 1code= clas_pci_ni.c#Lbottim">#pclas_pci_ni.c#L/n> )ef="include/linux/inut.h" class="fre27ine" nam2 L6">1 16l buttio3. 1code=MODULE_AUTHORbottim">#MODULE_AUTHOR/n> (ba/pata_acpi.strax_">"AlpatCox"" class)ef="include/linux/inut.h" class="fre27>linux/m27odule.h>l#MODULE_DESCRIPTION/n> (ba/pata_acpi.strax_">"SCSI low-level /linux for ne" in ss="lmode"" class)ef="include/linux/inut.h" class="fre28f">linux28pci.h>l#MODULE_LICENSE/n> (ba/pata_acpi.strax_">"GPL"" class)ef="include/linux/inut.h" class="fre28">linux/28> 1c/pata_an> einclu28e/li281/n> buttio3. 1code=MODULE_DEVICE_TABLEbottim">#MODULE_DEVICE_TABLE/n> (buttio3. 1code= csbottim"># ciL4> , 3uttio3. 1code=pclas_pci_tblbottim"># Llas_pci_tbl/n> )ef="include/linux/inut.h" class="fre28ass="com28ment">/*#MODULE_VERSION/n> (buttio3. 1code=DRV_VERSIONbottim">#DRV_VERSION/n> )ef="include/linux/inut.h" class="fre28ACPI PAT28A driverLXR c#L1ude yL4> , this experi1" ial nux/ion by ="includemailto:lxr@spaux.no">lxr@spaux.noL4> .
lxr.spaux.no kindly hRedpill Lpapro AS/n> , providux of Lpaux consultax_ and opera">lus servicas sincer1995.