linux/drivers/macintosh/via-cuda.c
<<
>>
Prefs
   1/*
   2 * Device driver for the via-cuda on Apple Powermacs.
   3 *
   4 * The VIA (versatile interface adapter) interfaces to the CUDA,
   5 * a 6805 microprocessor core which controls the ADB (Apple Desktop
   6 * Bus) which connects to the keyboard and mouse.  The CUDA also
   7 * controls system power and the RTC (real time clock) chip.
   8 *
   9 * Copyright (C) 1996 Paul Mackerras.
  10 */
  11#include <stdarg.h>
  12#include <linux/types.h>
  13#include <linux/errno.h>
  14#include <linux/kernel.h>
  15#include <linux/delay.h>
  16#include <linux/adb.h>
  17#include <linux/cuda.h>
  18#include <linux/spinlock.h>
  19#include <linux/interrupt.h>
  20#ifdef CONFIG_PPC
  21#include <asm/prom.h>
  22#include <asm/machdep.h>
  23#else
  24#include <asm/macintosh.h>
  25#include <asm/macints.h>
  26#include <asm/mac_via.h>
  27#endif
  28#include <asm/io.h>
  29#include <linux/init.h>
  30
  31static volatile unsigned chce CONF="L31"1stat *ref="+code=c_iAcudass="sref">CONFcudstat href="drivers/macintosh/via-cuda.c#L30" id="L22" 3lass="line" name="L22">3 22CONFDEFINE_SPINLOCKstat(ref="+code=c_iA.c#L_.hCONF.c#L_.h   233 24 * T/* (verregistmac -  clchce0x200 bytes a64/t/span>
3 25#incldeio.earef="+code=c_iARSass="sref">CONFRSstat              0x200           n class="comment"> * T/* skip betweenrregistmac span>
3 26CONFBstat               0               n class="comment"> * T/* B-silt;data span>
3 27CONFAstat               ref="+code=c_iARSass="sref">CONFRSstat              n class="comment"> * T/* A-silt;data span>
3 28CONFDIRBstat            (2*ref="+code=c_iARSass="sref">CONFRSstat)          n class="comment"> * T/* B-silt;diren="aj (1=output) span>
3 29CONFDIRAstat            (3*ref="+code=c_iARSass="sref">CONFRSstat)          n class="comment"> * T/* A-silt;diren="aj (1=output) span>
4 30CONFT1CLstat            (4*ref="+code=c_iARSass="sref">CONFRSstat)          n class="comment"> * T/* Timer 1 ctr/le ch (low 8 bits) span>
4 31CONFT1CHstat            (5*ref="+code=c_iARSass="sref">CONFRSstat)          n class="comment"> * T/* Timer 1 courupt (high 8 bits) span>
4 22CONFT1LLstat            (6*ref="+code=c_iARSass="sref">CONFRSstat)          n class="comment"> * T/* Timer 1 le ch (low 8 bits) span>
 4 23CONFT1LHstat            (7*ref="+code=c_iARSass="sref">CONFRSstat)          n class="comment"> * T/* Timer 1 le ch (high 8 bits) span>
   24CONFT2CLstat            (8*ref="+code=c_iARSass="sref">CONFRSstat)          n class="comment"> * T/* Timer 2 ctr/le ch (low 8 bits) span>
4 25#incldeio.earef="+code=c_iAT2CHass="sref">CONFT2CHstat            (9*ref="+code=c_iARSass="sref">CONFRSstat)          n class="comment"> * T/* Timer 2 courupt (high 8 bits) span>
4 26CONFSRstat              (10*ref="+code=c_iARSass="sref">CONFRSstat)         n class="comment"> * T/* Shiftrregistma span>
4 27CONFACRstat             (11*ref="+code=c_iARSass="sref">CONFRSstat)         n class="comment"> * T/* Auxiliarytrols syrregistma span>
4 28CONFPCRstat             (12*ref="+code=c_iARSass="sref">CONFRSstat)         n class="comment"> * T/* Peripheraltrols syrregistma span>
4 29CONFIFRstat             (13*ref="+code=c_iARSass="sref">CONFRSstat)         n class="comment"> * T/* Irupt.h
5 30CONFIERstat             (14*ref="+code=c_iARSass="sref">CONFRSstat)         n class="comment"> * T/* Irupt.h
5 31CONFANHstat             (15*ref="+code=c_iARSass="sref">CONFRSstat)         n class="comment"> * T/* A-silt;data, no handshake span>
5 22 5 23 *
 5 24CONFTREQstat            0x08            n class="comment"> * T/* Transfma request (t typ) span>
   25#incldeio.earef="+code=c_iATACKass="sref">CONFTACKstat            0x10            n class="comment"> * T/* Transfma acknowledge (output) span>
5 26CONFTIPstat             0x20            n class="comment"> * T/* Transfma in progress (output) span>
5 275 28 *
5 29CONFSR_CTRLstat         0x1c            n class="comment"> * T/* Shiftrregistma rols syrbits span>
6 30CONFSR_EXTstat          0x0c            n class="comment"> * T/* Shiftron extmanaltr.h
6 31CONFSR_OUTstat          0x10            n class="comment"> * T/* Shiftrout if 1 span>
6 22 6 23 *
 6 24CONFIER_SETstat         0x80            n class="comment"> * T/* setrbits in IER span>
 6 25#incldeio.earef="+code=c_iAIER_CLRass="sref">CONFIER_CLRstat         0               n class="comment"> * T/* clearrbits in IER span>
   26CONFSR_INTstat          0x04            n class="comment"> * T/* Shiftrregistma full/empty span>
6 276 28CONF.c#L_ic vestat {href="drivers/macintosh/via-cuda.c#L31" 6d="L29" 6lass="line" name="L29">6 29CONFidlestat,href="drivers/macintosh/via-cuda.c#L7" idd="L30" 7lass="line" name="L30">7 30 *_first_byteass="sref">CONFs> *_first_bytestat,href="drivers/macintosh/via-cuda.c#L7" idd="L31" 7lass="line" name="L31">7 31 bottass="sref">CONFs> bottstat,href="drivers/macintosh/via-cuda.c#L7" idd="L22" 7lass="line" name="L22">7 22CONFrngbottstat,href="drivers/macintosh/via-cuda.c#L7" idd="L3" c7lass="line" name="L3"> 7 23CONFrngb_" idstat,href="drivers/macintosh/via-cuda.c#L7" idd="L4" c7lass="line" name="L4"> 7 24CONFawaitott_reply
 7 25#inc}aref="+code=c_iA.c#L_ic veass="sref">CONF.c#L_ic vestat href="drivers/macintosh/via-cuda.c#L30" 7d="L6" c7lass="line" name="L6"> 7 26   27CONFadb_requeststat *ref="+code=c_iAcurr> *_reqass="sref">CONF.crr> *_reqstat href="drivers/macintosh/via-cuda.c#L30" 7d="L28" 7lass="line" name="L28">7 28CONFadb_requeststat *ref="+code=c_iA="s*_reqass="sref">CONF="s*_reqstat href="drivers/macintosh/via-cuda.c#L30" 7d="L29" 7lass="line" name="L29">7 29CONF.c#L_rbufstat[16] href="drivers/macintosh/via-cuda.c#L30" 8d="L30" 8lass="line" name="L30">8 30CONFrnply_ptrstat href="drivers/macintosh/via-cuda.c#L30" 8d="L31" 8lass="line" name="L31">8 31static volash/ ref="+code=c_iArngbott_reply="s="sref">CONFrngbott_replystat href="drivers/macintosh/via-cuda.c#L30" 8d="L22" 8lass="line" name="L22">8 22CONFdata_indexstat href="drivers/macintosh/via-cuda.c#L30" 8d="L3" c8lass="line" name="L3"> 8 23CONF.c#L_irqstat href="drivers/macintosh/via-cuda.c#L30" 8d="L4" c8lass="line" name="L4"> 8 24#inclu CONFIG_PPC
 8 25CONFde dri_nc_istat *ref="+code=c_iAcuds="s="sref">CONFcudsstat href="drivers/macintosh/via-cuda.c#L30" 8d="L6" c8lass="line" name="L6"> 8 26 8 27CONF.c#L_fully_.h   288 29CONFIG_PPC"ADB
9 30CONF.c#L_probestat(void) href="drivers/macintosh/via-cuda.c#L30" 9d="L31" 9lass="line" name="L31">9 31static volash/ ref="+code=c_iA.c#L_if
<_request="s="sref">CONF.c#L_if
<_requeststat(struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *ref="+code=c_iAreqass="sref">CONFreqstat,ash/ ref="+code=c_iAsyncass="sref">CONFsyncstat) href="drivers/macintosh/via-cuda.c#L30" 9d="L22" 9lass="line" name="L22">9 22CONF.c#L_adb_autopollstat(sh/ ref="+code=c_iAdevs="s="sref">CONFdevsstat) href="drivers/macintosh/via-cuda.c#L30" 9d="L3" c9lass="line" name="L3"> 9 23CONF.c#L_reset_adb_busstat(void) href="drivers/macintosh/via-cuda.c#L30" 9d="L4" c9lass="line" name="L4"> 9 24 * T/* IG_PPC"ADB span>
 9 25 9 26CONF.c#L_ih 9 27CONF.c#L_ic rtstat(void) href="drivers/macintosh/via-cuda.c#L30" 9d="L8" c9lass="line" name="L8"> 9 28CONFirqrn fal_tstat ref="+code=c_iA.c#L_ihupt.hCONF.c#L_ihupt.hCONFirqstat,avoida*ref="+code=c_iAartass="sref">CONFartstat) href="drivers/macintosh/via-cuda.c#L30" 9d="L9" cllass="line" name="L9">   29CONF.c#L_ihtypstat(gned chce CONFbufstat,ash/ ref="+code=c_iAnbass="sref">CONFnbstat) href="drivers/macintosh/via-cuda.c#L30" 10d="L10" cllass="line" name="L10">   30<   statvoidaref="+code=c_iA.c#L_poll="s="sref">CONF.c#L_pollstat(void) href="drivers/macintosh/via-cuda.c#L30" 10d="L11" c0lass="line" name="L11"> 0130<  >static volash/ ref="+code=c_iA.c#L_wriveass="sref">CONF.c#L_wrivestat(struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *ref="+code=c_iAreqass="sref">CONFreqstat) href="drivers/macintosh/via-cuda.c#L30" 10d="L12" c0lass="line" name="L12"> 0230<  2
 0330<  3statsh/ ref="+code=c_iA.c#L_request="s="sref">CONF.c#L_requeststat(struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *ref="+code=c_iAreqass="sref">CONFreqstat,href="drivers/macintosh/via-cuda.c#L31" 10d="L14" c0lass="line" name="L14"> 0430<  4stat                 voida(*ref="+code=c_iA" id="s="sref">CONF" idstat)(struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *),ash/ ref="+code=c_iAnbytesass="sref">CONFnbytesstat,a...) href="drivers/macintosh/via-cuda.c#L30" 10d="L15" c0lass="line" name="L15"> 0530<  5
 0630<  6#inclu CONFIG_PPC"ADB
 0730<  7staticruct ref="+code=c_iAadb_ers/ma="s="sref">CONFadb_ers/mastat ref="+code=c_iAcud_.c#L_ers/ma="s="sref">CONFcud_.c#L_ers/mastat = {href="drivers/macintosh/via-cuda.c#L31" 10d="L18" c0lass="line" name="L18"> 0830<  8stat        .ref="+code=c_iAn"L1ass="sref">CONFn"L1stat         = n class="commicrotta>" als"an>
 0930<  9stat        .ref="+code=c_iAprobeass="sref">CONFprobestat        = nef="+code=c_iA.c#L_probeass="sref">CONF.c#L_probestat,href="drivers/macintosh/via-cuda.c#L31" 1id="L10" cclass="line" name="L10">   10<110stat        .ref="+code=c_iAif
<_request="s="sref">CONFif
<_requeststat = nef="+code=c_iA.c#L_if
<_request="s="sref">CONF.c#L_if
<_requeststat,href="drivers/macintosh/via-cuda.c#L31" 1id="L11" cllass="line" name="L11">  130< 11stat        .ref="+code=c_iAautopoll="s="sref">CONFautopollstat     = nef="+code=c_iA.c#L_adb_autopoll="s="sref">CONF.c#L_adb_autopollstat,href="drivers/macintosh/via-cuda.c#L31" 1id="L12" cclass="line" name="L12">   12<112stat        .ref="+code=c_iApoll="s="sref">CONFpollstat         = nef="+code=c_iA.c#L_poll="s="sref">CONF.c#L_pollstat,href="drivers/macintosh/via-cuda.c#L31" 1id="L13" cclass="line" name="L13">   13<113stat        .ref="+code=c_iAreset_bus="s="sref">CONFreset_busstat    = nef="+code=c_iA.c#L_reset_adb_bus="s="sref">CONF.c#L_reset_adb_busstat,href="drivers/macintosh/via-cuda.c#L31" 1id="L14" cclass="line" name="L14">   14<1a>#inc} href="drivers/macintosh/via-cuda.c#L30" 1id="L15" cclass="line" name="L15">   15<1a>#inclf
 * T/* IG_PPC"ADB span>
   16<116
   17<1a>#inclu CONFIG_PPC   18<1a>#incsh/ ref="+code=c_iA__ihCONF__ihCONFfi
<_cud_.c#Lstat(void)href="drivers/macintosh/via-cuda.c#L31" 1id="L19" cclass="line" name="L19">   19<1a>#inc{href="drivers/macintosh/via-cuda.c#L31" 1id="L20" 1class="line" name="L20">1  20<120stat    struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat ref="+code=c_iAreqass="sref">CONFreqstat href="drivers/macintosh/via-cuda.c#L12" idd="L11" cclass="line" name="L21">1  21<121stat    sh/ ref="+code=c_iAera="s="sref">CONFerastat href="drivers/macintosh/via-cuda.c#L12" idd="L12" cllass="line" name="L12">   12<122
1  23<123stat    a  (ref="+code=c_iAntosh/viatentfitass="sref">CONFntosh/viatentfitstat-
CONFadb_s.hCONFMAl"ADB_ alsstat)href="drivers/macintosh/via-cuda.c#L31" 1id="L14" cclass="line" name="L24">1  24<124stat        rn fals0 href="drivers/macintosh/via-cuda.c#L12" idd="L15" cclass="line" name="L25">1  25<125
1  26<1a>#inc    ref="+code=c_iAcudass="sref">CONFcudstat = nef="+code=c_iAcud1ass="sref">CONFcud1stat href="drivers/macintosh/via-cuda.c#L12" idd="L17" cclass="line" name="L27">1  27<1a>#end    ref="+code=c_iA.c#L_ic veass="sref">CONF.c#L_ic vestat = nef="+code=c_iAidleass="sref">CONFidlestat href="drivers/macintosh/via-cuda.c#L12" idd="L18" cclass="line" name="L28">1  28<128
1  29<129stat    ref="+code=c_iAera="s="sref">CONFerastat = nef="+code=c_iA.c#L_ihCONF.c#L_ih1  30<130stat    a  (ref="+code=c_iAera="s="sref">CONFerastat) {href="drivers/macintosh/via-cuda.c#L31" 1id="L31" 1class="line" name="L31">1  31<131stat        ref="+code=c_iAprsh//ass="sref">CONFprsh//stat(ref="+code=c_iAKERN_ERRass="sref">CONFKERN_ERRstat r class="commicrotta>".c#L_ih
13 22<132stat        ref="+code=c_iAcudass="sref">CONFcudstat = nef="+code=c_iANULLass="sref">CONFNULLstat href="drivers/macintosh/via-cuda.c#L12" iid="L3" c1llass="line" name="L3"> 1  23<133stat        rn fals0 href="drivers/macintosh/via-cuda.c#L12" iid="L24" 13lass="line" name="L24">13 24<134stat    }href="drivers/macintosh/via-cuda.c#L12" iid="L15" c3lass="line" name="L25">13 25<135
13 26<13>#inc    r class="comment"> * T/* enablerautopoll span>
13 27<13>#end    ref="+code=c_iA.c#L_request="s="sref">CONF.c#L_requeststat(& ref="+code=c_iAreqass="sref">CONFreqstat,anef="+code=c_iANULLass="sref">CONFNULLstat, 3,anef="+code=c_iA als_PACKETass="sref">CONF als_PACKETstat,anef="+code=c_iA als_AUTOPOLLass="sref">CONF als_AUTOPOLLstat,a1) href="drivers/macintosh/via-cuda.c#L30" 1id="L18" c3lass="line" name="L28">13 28<138stat    whunsi(!ref="+code=c_iAreqass="sref">CONFreqstat.ref="+code=c_iAentpleveass="sref">CONF.ntplevestat)href="drivers/macintosh/via-cuda.c#L31" 13d="L29" 13lass="line" name="L29">13 29<139stat        ref="+code=c_iA.c#L_poll="s="sref">CONF.c#L_pollstat() href="drivers/macintosh/via-cuda.c#L30" 14d="L30" 14lass="line" name="L30">14 30<14>
14 31<141stat    rn fals1 href="drivers/macintosh/via-cuda.c#L30" 14d="L12" c4lass="line" name="L22">14 22<142#inc}href="drivers/macintosh/via-cuda.c#L12" i4d="L3" c14lass="line" name="L3"> 14 23<14>#else
 1  24<144#incsh/ ref="+code=c_iA__ihCONF__ihCONFfi
<_cud_.c#Lstat(void)href="drivers/macintosh/via-cuda.c#L31" 14d="L25" 14lass="line" name="L25">14 25<14>#inc{href="drivers/macintosh/via-cuda.c#L31" 14d="L26" 14lass="line" name="L26">14 26<14>#inc    struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat ref="+code=c_iAreqass="sref">CONFreqstat href="drivers/macintosh/via-cuda.c#L12" i4d="L27" 14lass="line" name="L27">14 27<14>#end    ref="+code=c_iAphys_addr_t="s="sref">CONFphys_addr_tstat ref="+code=c_iAtaddr="s="sref">CONFtaddrstat href="drivers/macintosh/via-cuda.c#L12" i4d="L18" c4lass="line" name="L28">14 28<148stat    entst ref="+code=c_iAu3lass="line">CONFu32stat *ref="+code=c_iAretass="sref">CONFrngstat href="drivers/macintosh/via-cuda.c#L12" i4d="L29" 14lass="line" name="L29">14 29<149stat    sh/ ref="+code=c_iAera="s="sref">CONFerastat href="drivers/macintosh/via-cuda.c#L12" i5d="L30" 15lass="line" name="L30">15 30<15>
15 31<151stat    s  (ref="+code=c_iAcuds="s="sref">CONFcudsstat != 0)href="drivers/macintosh/via-cuda.c#L31" 15d="L22" 15lass="line" name="L22">15 22<152stat        rn fals1 href="drivers/macintosh/via-cuda.c#L30" 15d="L3" c15lass="line" name="L3"> 15 23<153stat    ref="+code=c_iAcuds="s="sref">CONFcudsstat = nef="+code=c_iAof_fi
<_nc_i_by_n"L1ass="sref">CONFof_fi
<_nc_i_by_n"L1stat(ref="+code=c_iANULLass="sref">CONFNULLstat, r class="commicrotta>"cuda.c#L"an>
 15 24<154stat    s  (ref="+code=c_iAcuds="s="sref">CONFcudsstat == 0)href="drivers/macintosh/via-cuda.c#L31" 15d="L25" 1llass="line" name="L5"> 1  25<15>#inc        rn fals0 href="drivers/macintosh/via-cuda.c#L12" i5d="L26" 15lass="line" name="L26">15 26<156
15 27<15>#end    ref="+code=c_iAretass="sref">CONFrngstat = nef="+code=c_iAof_get_property="s="sref">CONFof_get_propertystat(ref="+code=c_iAcuds="s="sref">CONFcudsstat, r class="commicrotta>"rng"an>
CONFNULLstat) href="drivers/macintosh/via-cuda.c#L30" 15d="L18" c5lass="line" name="L28">15 28<158stat    s  (ref="+code=c_iAretass="sref">CONFrngstat == nef="+code=c_iANULLass="sref">CONFNULLstat) {href="drivers/macintosh/via-cuda.c#L31" 15d="L29" 15lass="line" name="L29">15 29<159stat            ref="+code=c_iAprsh//ass="sref">CONFprsh//stat(ref="+code=c_iAKERN_ERRass="sref">CONFKERN_ERRstat r class="commicrotta>"cuda.c#L: No \"rng\" property !\n"an>
16 30<160stat            goto ref="+code=c_iAfail="s="sref">CONFfailstat href="drivers/macintosh/via-cuda.c#L12" i6d="L31" 16lass="line" name="L31">16 31<161stat    }href="drivers/macintosh/via-cuda.c#L12" i6d="L22" 16lass="line" name="L22">16 22<162stat    ref="+code=c_iAtaddr="s="sref">CONFtaddrstat = nef="+code=c_iAof_translate_address="s="sref">CONFof_translate_addressstat(ref="+code=c_iAcuds="s="sref">CONFcudsstat, ref="+code=c_iAretass="sref">CONFrngstat) href="drivers/macintosh/via-cuda.c#L30" 16d="L3" c16lass="line" name="L3"> 16 23<163stat    a  (ref="+code=c_iAtaddr="s="sref">CONFtaddrstat == 0) {href="drivers/macintosh/via-cuda.c#L31" 16d="L4" c16lass="line" name="L4"> 16 24<164stat            ref="+code=c_iAprsh//ass="sref">CONFprsh//stat(ref="+code=c_iAKERN_ERRass="sref">CONFKERN_ERRstat r class="commicrotta>"cuda.c#L: Can't translate address !\n"an>
 16 25<165stat            goto ref="+code=c_iAfail="s="sref">CONFfailstat href="drivers/macintosh/via-cuda.c#L12" i6d="L16" cllass="line" name="L16">   26<166stat    }href="drivers/macintosh/via-cuda.c#L12" i6d="L27" 16lass="line" name="L27">16 27<16>#end    ref="+code=c_iAcudass="sref">CONFcudstat = nef="+code=c_iAioremapass="sref">CONFioremapstat(ref="+code=c_iAtaddr="s="sref">CONFtaddrstat, 0x2000) href="drivers/macintosh/via-cuda.c#L30" 16d="L18" c6lass="line" name="L28">16 28<168stat    s  (ref="+code=c_iAcudass="sref">CONFcudstat == nef="+code=c_iANULLass="sref">CONFNULLstat) {href="drivers/macintosh/via-cuda.c#L31" 16d="L29" 16lass="line" name="L29">16 29<169stat            ref="+code=c_iAprsh//ass="sref">CONFprsh//stat(ref="+code=c_iAKERN_ERRass="sref">CONFKERN_ERRstat r class="commicrotta>"cuda.c#L: Can't map address !\n"an>
17 30<170stat            goto ref="+code=c_iAfail="s="sref">CONFfailstat href="drivers/macintosh/via-cuda.c#L12" idd="L31" 17lass="line" name="L31">17 31<171stat    }href="drivers/macintosh/via-cuda.c#L12" idd="L22" 17lass="line" name="L22">17 22<172
 17 23<173stat    ref="+code=c_iA.c#L_ic veass="sref">CONF.c#L_ic vestat = nef="+code=c_iAidleass="sref">CONFidlestat href="drivers/macintosh/via-cuda.c#L12" idd="L4" c17lass="line" name="L4"> 17 24<174stat    ref="+code=c_iAsys_ctrlma="s="sref">CONFsys_ctrlmastat = nef="+code=c_iASYS_CTRLER_Cals="s="sref">CONFSYS_CTRLER_Calsstat href="drivers/macintosh/via-cuda.c#L12" idd="L25" 17lass="line" name="L5"> 17 25<175
 17 26<17>#inc    ref="+code=c_iAera="s="sref">CONFerastat = nef="+code=c_iA.c#L_ihCONF.c#L_ih 1  27<177stat    s  (ref="+code=c_iAera="s="sref">CONFerastat) {href="drivers/macintosh/via-cuda.c#L31" 17d="L28" 17lass="line" name="L28">17 28<178stat        ref="+code=c_iAprsh//ass="sref">CONFprsh//stat(ref="+code=c_iAKERN_ERRass="sref">CONFKERN_ERRstat r class="commicrotta>".c#L_ih
17 29<179stat        ref="+code=c_iAcudass="sref">CONFcudstat = nef="+code=c_iANULLass="sref">CONFNULLstat href="drivers/macintosh/via-cuda.c#L12" i8d="L30" 18lass="line" name="L30">18 30<180stat        rn fals0 href="drivers/macintosh/via-cuda.c#L12" i8d="L31" 18lass="line" name="L31">18 31<181stat    }href="drivers/macintosh/via-cuda.c#L12" i8d="L22" 18lass="line" name="L22">18 22<182
 18 23<183stat    r class="comment"> * T/* Ilearrthe enablerihupt.h
 18 24<184stat    r class="comment"> * T/* for us by the main (verers/ma in arch//mac_via-cud.c        span>
 18 25<185
 18 26<18>#inc    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIFRass="sref">CONFIFRstat], 0x7f);     r class="comment"> * T/* clearrihupt.h
 18 27<18>#end    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIERass="sref">CONFIERstat], ref="+code=c_iAIER_SETass="sref">CONFIER_SETstat|nef="+code=c_iASR_INTass="sref">CONFSR_INTstat); r class="comment"> * T/* enablerirupt.h
 1  28<188
18 29<189stat    r class="comment"> * T/* enablerautopoll span>
19 30<190stat    ref="+code=c_iA.c#L_request="s="sref">CONF.c#L_requeststat(& ref="+code=c_iAreqass="sref">CONFreqstat,anef="+code=c_iANULLass="sref">CONFNULLstat, 3,anef="+code=c_iA als_PACKETass="sref">CONF als_PACKETstat,anef="+code=c_iA als_AUTOPOLLass="sref">CONF als_AUTOPOLLstat,a1) href="drivers/macintosh/via-cuda.c#L30" 19d="L31" 19lass="line" name="L31">19 31<191stat    whunsi(!ref="+code=c_iAreqass="sref">CONFreqstat.ref="+code=c_iAentpleveass="sref">CONF.ntplevestat)href="drivers/macintosh/via-cuda.c#L31" 19d="L22" 19lass="line" name="L22">19 22<192stat        ref="+code=c_iA.c#L_poll="s="sref">CONF.c#L_pollstat() href="drivers/macintosh/via-cuda.c#L30" 19d="L3" c19lass="line" name="L3"> 19 23<193
 19 24<194stat    rn fals1 href="drivers/macintosh/via-cuda.c#L30" 19d="L5" c19lass="line" name="L5"> 19 25<195
 19 26<196stat ref="+code=c_iAfail="s="sref">CONFfailstat:href="drivers/macintosh/via-cuda.c#L21" 19d="L7" c19lass="line" name="L7"> 19 27<19>#end    ref="+code=c_iAof_nc_i_typass="sref">CONFof_nc_i_typstat(ref="+code=c_iAcuds="s="sref">CONFcudsstat) href="drivers/macintosh/via-cuda.c#L30" 19d="L8" c19lass="line" name="L8"> 19 28<198#end    ref="+code=c_iAcuds="s="sref">CONFcudsstat = nef="+code=c_iANULLass="sref">CONFNULLstat href="drivers/macintosh/via-cuda.c#L12" i9d="L9" c1llass="line" name="L9"> 1  29<199stat    rn fals0 href="drivers/macintosh/via-cuda.c#L12" 20d="L10" 2llass="line" name="L10">2  30<2  stat}href="drivers/macintosh/via-cuda.c#L12" 20d="L11" 20lass="line" name="L11">20130<2 >statlf
 * T/* !deio.ed IG_PPC
20230<2 2
20330<203static volash/ ref="+code=c_iA__ihCONF__ihCONFcud_.c#L_ic rtstat(void)href="drivers/macintosh/via-cuda.c#L31" 20d="L14" 20lass="line" name="L14">20430<2 4stat{href="drivers/macintosh/via-cuda.c#L31" 20d="L15" 20lass="line" name="L15">20530<205stat    s  (ref="+code=c_iAcudass="sref">CONFcudstat == nef="+code=c_iANULLass="sref">CONFNULLstat)href="drivers/macintosh/via-cuda.c#L31" 206="L15" 20lass="line" name="L6"> 20630<206stat        rn fals-nef="+code=c_iAENODEVass="sref">CONFENODEVstat href="drivers/macintosh/via-cuda.c#L12" 20d="L17" 20lass="line" name="L17">20730<207
20830<20>#inclu CONFIG_PPC20930<209stat    ref="+code=c_iA.c#L_irqass="sref">CONF.c#L_irqstat = nef="+code=c_iAIRQ_MAl"ADBass="sref">CONFIRQ_MAl"ADBstat href="drivers/macintosh/via-cuda.c#L12" 2id="L10" 2class="line" name="L10">2  10<210state
2 130<211stat    ref="+code=c_iA.c#L_irqass="sref">CONF.c#L_irqstat = nef="+code=c_iAirq_of_parse_and_mapass="sref">CONFirq_of_parse_and_mapstat(ref="+code=c_iAcuds="s="sref">CONFcudsstat, 0) href="drivers/macintosh/via-cuda.c#L30" 2id="L12" 2class="line" name="L12">2  12<212stat    s  (ref="+code=c_iA.c#L_irqass="sref">CONF.c#L_irqstat == nef="+code=c_iANO_IRQass="sref">CONFNO_IRQstat) {href="drivers/macintosh/via-cuda.c#L31" 2id="L13" 2class="line" name="L13">2  13<213stat        ref="+code=c_iAprsh//ass="sref">CONFprsh//stat(ref="+code=c_iAKERN_ERRass="sref">CONFKERN_ERRstat r class="commicrotta>"cuda.c#L: can't map ihupt.h
2  14<214stat               ref="+code=c_iAcuds="s="sref">CONFcudsstat-
CONFfull_n"L1stat) href="drivers/macintosh/via-cuda.c#L30" 2id="L15" 2class="line" name="L15">2  15<21>#inc        rn fals-nef="+code=c_iAENODEVass="sref">CONFENODEVstat href="drivers/macintosh/via-cuda.c#L12" 2id="L16" 2class="line" name="L16">2  16<216stat    }href="drivers/macintosh/via-cuda.c#L12" 2id="L17" 2class="line" name="L17">2  17<2a>#inclf
2  18<218
2  19<219stat    s  (ref="+code=c_iArequest_irqass="sref">CONFrequest_irqstat(ref="+code=c_iA.c#L_irqass="sref">CONF.c#L_irqstat,anef="+code=c_iA.c#L_ihupt.hCONF.c#L_ihupt.hCONF.c#L_ihupt.h2  20<220stat        ref="+code=c_iAprsh//ass="sref">CONFprsh//stat(ref="+code=c_iAKERN_ERRass="sref">CONFKERN_ERRstat r class="commicrotta>"cuda.c#L: can't request irq %d\n"an>
CONF.c#L_irqstat) href="drivers/macintosh/via-cuda.c#L30" 2dd="L11" 2class="line" name="L21">2  21<221#inc        rn fals-nef="+code=c_iAEAGAINass="sref">CONFEAGAINstat href="drivers/macintosh/via-cuda.c#L12" 2dd="L12" 2llass="line" name="L12">2  12<222stat    }href="drivers/macintosh/via-cuda.c#L12" 2id="L23" 2class="line" name="L23">2  23<223
2  24<224stat    ref="+code=c_iAprsh//ass="sref">CONFprsh//stat(r class="commicrotta>"Mtosh/via  alsrers/ma v0.5 for Unified ADB.\n"an>
2  25<225
2  26<2a>#inc    ref="+code=c_iA.c#L_fully_.hCONF.c#L_fully_.h2  27<2a>#end    rn fals0 href="drivers/macintosh/via-cuda.c#L12" 2dd="L18" 2class="line" name="L28">2  28<228
2  29<229stathref="drivers/macintosh/via-cuda.c#L12" 2id="L30" 2class="line" name="L30">2  30<230statref="+code=c_iAde dri_.hCONFde dri_.hCONFcud_.c#L_ic rtstat) href="drivers/macintosh/via-cuda.c#L30" 2id="L31" 2class="line" name="L31">2  31<231stathref="drivers/macintosh/via-cuda.c#L30" 2id="L12" 23lass="line" name="L22">23 22<232statlu CONFIG_PPC"ADB
 2  23<233static volash/href="drivers/macintosh/via-cuda.c#L21" 2id="L14" 23lass="line" name="L24">23 24<234statref="+code=c_iA.c#L_probeass="sref">CONF.c#L_probestat(void)href="drivers/macintosh/via-cuda.c#L21" 2id="L15" 23lass="line" name="L25">23 25<23>#inc{href="drivers/macintosh/via-cuda.c#L31" 23d="L26" 23lass="line" name="L26">23 26<236#inclu CONFIG_PPC
23 27<237stat    s  (ref="+code=c_iAsys_ctrlma="s="sref">CONFsys_ctrlmastat != nef="+code=c_iASYS_CTRLER_Cals="s="sref">CONFSYS_CTRLER_Calsstat)href="drivers/macintosh/via-cuda.c#L21" 2id="L18" 23lass="line" name="L28">23 28<238#inc        rn fals-nef="+code=c_iAENODEVass="sref">CONFENODEVstat href="drivers/macintosh/via-cuda.c#L12" 23d="L29" 23lass="line" name="L29">23 29<239state
24 30<240stat    a  (ref="+code=c_iAntosh/viatentfitass="sref">CONFntosh/viatentfitstat-
CONFadb_s.hCONFMAl"ADB_ alsstat)href="drivers/macintosh/via-cuda.c#L31" 24d="L31" 24lass="line" name="L31">24 31<241#inc        rn fals-nef="+code=c_iAENODEVass="sref">CONFENODEVstat href="drivers/macintosh/via-cuda.c#L12" 24d="L12" 24lass="line" name="L22">24 22<242#inclf
 24 23<243stat    a  (ref="+code=c_iAcudass="sref">CONFcudstat == nef="+code=c_iANULLass="sref">CONFNULLstat)href="drivers/macintosh/via-cuda.c#L31" 24d="L4" c2llass="line" name="L4"> 2  24<244stat        rn fals-nef="+code=c_iAENODEVass="sref">CONFENODEVstat href="drivers/macintosh/via-cuda.c#L12" 24d="L15" 24lass="line" name="L25">24 25<24>#inc    rn fals0 href="drivers/macintosh/via-cuda.c#L12" 24d="L26" 24lass="line" name="L26">24 26<24>#inc}href="drivers/macintosh/via-cuda.c#L12" 24d="L27" 24lass="line" name="L27">24 27<24>#inclf
 * T/* IG_PPC"ADB span>
24 28<248
24 29<249#incldeio.earef="+code=c_iAWAIT_FORass="sref">CONFWAIT_FORstat(ref="+code=c_iA.ondass="sref">CONF.ondstat,anef="+code=c_iAwhat="s="sref">CONFwhatstat)                                    \href="drivers/macintosh/via-cuda.c#L21" 25d="L30" 25lass="line" name="L30">25 30<250stat    do {                                                        \href="drivers/macintosh/via-cuda.c#L21" 25d="L31" 25lass="line" name="L31">25 31<251#inc        sh/ ref="+code=c_iAx="s="sref">CONFxstat                                                   \href="drivers/macintosh/via-cuda.c#L21" 25d="L12" 25lass="line" name="L22">25 22<252stat        for (ref="+code=c_iAx="s="sref">CONFxstat = 1000; !(ref="+code=c_iA.ondass="sref">CONF.ondstat); --nef="+code=c_iAx="s="sref">CONFxstat) {                          \href="drivers/macintosh/via-cuda.c#L21" 25d="L3" c25lass="line" name="L3"> 25 23<253stat            s  (ref="+code=c_iAx="s="sref">CONFxstat == 0) {                                       \href="drivers/macintosh/via-cuda.c#L21" 25d="L4" c25lass="line" name="L4"> 25 24<254stat                ref="+code=c_iAprsh//ass="sref">CONFprsh//stat(r class="commicrotta>"Timeout waitott for "an>
CONFwhatstat r class="commicrotta>"\n"an>
 2  25<255stat                rn fals-nef="+code=c_iAENXIOass="sref">CONFENXIOstat                                   \href="drivers/macintosh/via-cuda.c#L21" 25d="L26" 25lass="line" name="L26">25 26<256stat            }                                                   \href="drivers/macintosh/via-cuda.c#L21" 25d="L27" 25lass="line" name="L27">25 27<25>#end            ref="+code=c_iAudelay="s="sref">CONFudelaystat(100)                                         \href="drivers/macintosh/via-cuda.c#L21" 25d="L18" 25lass="line" name="L28">25 28<258#inc        }                                                       \href="drivers/macintosh/via-cuda.c#L21" 25d="L29" 25lass="line" name="L29">25 29<259stat    } whunsi(0)href="drivers/macintosh/via-cuda.c#L31" 26d="L30" 26lass="line" name="L30">26 30<26>
26 31<26>static volash/href="drivers/macintosh/via-cuda.c#L31" 26d="L12" 26lass="line" name="L22">26 22<262statnef="+code=c_iA.c#L_ihCONF.c#L_ih 26 23<263stat{href="drivers/macintosh/via-cuda.c#L31" 26d="L4" c26lass="line" name="L4"> 26 24<264stat    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iADIRBass="sref">CONFDIRBstat], (ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iADIRBass="sref">CONFDIRBstat]) | ref="+code=c_iATACKass="sref">CONFTACKstat | ref="+code=c_iATIPass="sref">CONFTIPstat) &  ~ref="+code=c_iATREQass="sref">CONFTREQstat); n class="comment"> * T/* TACK &  TIP out span>
 26 25<265stat    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) | ref="+code=c_iATACKass="sref">CONFTACKstat | ref="+code=c_iATIPass="sref">CONFTIPstat)                  n class="comment"> * T/* negate them span>
2  26<26>#inc    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAACRass="sref">CONFACRstat] ,(ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAACRass="sref">CONFACRstat]) &  ~ref="+code=c_iASR_CTRL="s="sref">CONFSR_CTRLstat) | ref="+code=c_iASR_EXTass="sref">CONFSR_EXTstat)     n class="comment"> * T/* SR data in span>
26 27<26>#end    (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat])                                                r class="comment"> * T/* clearrany left-o/ma data span>
26 28<26>#inclu CONFIG_PPC
26 29<269stat    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIERass="sref">CONFIERstat], 0x7f);                                     r class="comment"> * T/* disablerihupt.h
27 30<270stat    (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIERass="sref">CONFIERstat]) href="drivers/macintosh/via-cuda.c#L30" 2dd="L31" 27lass="line" name="L31">27 31<271state
27 22<272stat    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIERass="sref">CONFIERstat], ref="+code=c_iASR_INTass="sref">CONFSR_INTstat);                                   r class="comment"> * T/* disablerSR irupt.h
 27 23<273#inclf
 27 24<274stathref="drivers/macintosh/via-cuda.c#L28" 2dd="L25" 27lass="line" name="L5"> 27 25<275stat    r class="comment"> * T/* delay 4msrthe then clearrany pf

 27 26<27>#inc    ref="+code=c_iAmdelay="s="sref">CONFmdelaystat(4) href="drivers/macintosh/via-cuda.c#L30" 2dd="L27" 2llass="line" name="L7"> 2  27<27>#end    (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat]) href="drivers/macintosh/via-cuda.c#L30" 2dd="L18" 27lass="line" name="L28">27 28<278#end    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIFRass="sref">CONFIFRstat], ref="+code=c_iASR_INTass="sref">CONFSR_INTstat);href="drivers/macintosh/via-cuda.c#L30" 2dd="L29" 27lass="line" name="L29">27 29<279stathref="drivers/macintosh/via-cuda.c#L12" 28d="L30" 28lass="line" name="L30">28 30<280stat    r class="comment"> * T/* sync with the  alsr- "coert TACK without TIP span>
28 31<281stat    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) &  ~ref="+code=c_iATACKass="sref">CONFTACKstat);href="drivers/macintosh/via-cuda.c#L30" 28d="L22" 28lass="line" name="L22">28 22<282
 28 23<283stat    r class="comment"> * T/* wait for the  alsrto "coert TREQ in response span>
 28 24<284stat    ref="+code=c_iAWAIT_FORass="sref">CONFWAIT_FORstat((ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) &  ref="+code=c_iATREQass="sref">CONFTREQstat) == 0, r class="commicrotta>" alsrresponse to sync"an>
 28 25<285
 28 26<28>#inc    r class="comment"> * T/* wait for the irupt.h
 28 27<28>#end    ref="+code=c_iAWAIT_FORass="sref">CONFWAIT_FORstat(ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIFRass="sref">CONFIFRstat]) &  ref="+code=c_iASR_INTass="sref">CONFSR_INTstat, r class="commicrotta>" alsrresponse to sync (2)"an>
 2  28<288#end    (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat]) href="drivers/macintosh/via-cuda.c#L30" 28d="L29" 28lass="line" name="L29">28 29<289stat    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIFRass="sref">CONFIFRstat], ref="+code=c_iASR_INTass="sref">CONFSR_INTstat);href="drivers/macintosh/via-cuda.c#L30" 29d="L30" 29lass="line" name="L30">29 30<29>
29 31<291stat    r class="comment"> * T/* finish the sync by negatang TACK span>
29 22<292stat    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) | ref="+code=c_iATACKass="sref">CONFTACKstat);href="drivers/macintosh/via-cuda.c#L30" 29d="L3" c29lass="line" name="L3"> 29 23<293
 29 24<294stat    r class="comment"> * T/* wait for the  alsrto negate TREQ the the correspon
 29 25<295stat    ref="+code=c_iAWAIT_FORass="sref">CONFWAIT_FORstat(ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) &  ref="+code=c_iATREQass="sref">CONFTREQstat, r class="commicrotta>" alsrresponse to sync (3)"an>
 29 26<29>#inc    ref="+code=c_iAWAIT_FORass="sref">CONFWAIT_FORstat(ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIFRass="sref">CONFIFRstat]) &  ref="+code=c_iASR_INTass="sref">CONFSR_INTstat, r class="commicrotta>" alsrresponse to sync (4)"an>
 29 27<29>#end    (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat]) href="drivers/macintosh/via-cuda.c#L30" 29d="L8" c29lass="line" name="L8"> 29 28<298#end    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIFRass="sref">CONFIFRstat], ref="+code=c_iASR_INTass="sref">CONFSR_INTstat);href="drivers/macintosh/via-cuda.c#L30" 29d="L29" 2llass="line" name="L9"> 2  29<299stat    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) | ref="+code=c_iATIPass="sref">CONFTIPstat)         r class="comment"> * T/* should be unnecessary span>
3  30<30>
30130<301stat    rn fals0 href="drivers/macintosh/via-cuda.c#L12" 30d="L12" 30lass="line" name="L12">30230<302#inc}href="drivers/macintosh/via-cuda.c#L12" 30d="L13" 30lass="line" name="L13">30330<303
30430<3 4statlu CONFIG_PPC"ADB
30530<305statn class="comment"> * T/* Sehe lasADB ent"the span>
 30630<306static volash/href="drivers/macintosh/via-cuda.c#L31" 30d="L17" 30lass="line" name="L17">30730<307
CONF.c#L_iehe_requeststat(struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *ref="+code=c_iAreqass="sref">CONFreqstat,ash/ ref="+code=c_iAsyncass="sref">CONFsyncstat)href="drivers/macintosh/via-cuda.c#L31" 308="L17" 30lass="line" name="L8"> 30830<30>#inc{href="drivers/macintosh/via-cuda.c#L31" 30d="L19" 30lass="line" name="L19">30930<309stat    sh/ ref="+code=c_iAiass="sref">CONFistat href="drivers/macintosh/via-cuda.c#L12" 3id="L10" 3class="line" name="L10">3  10<31>
3 130<311stat    s  ((ref="+code=c_iAcudass="sref">CONFcudstat == nef="+code=c_iANULLass="sref">CONFNULLstat) || !ref="+code=c_iA.c#L_fully_.hCONF.c#L_fully_.h3  12<312stat        ref="+code=c_iAreqass="sref">CONFreqstat-
CONF.ntplevestat = 1 href="drivers/macintosh/via-cuda.c#L30" 3id="L13" 3class="line" name="L13">3  13<313stat        rn fals-nef="+code=c_iAENXIOass="sref">CONFENXIOstat href="drivers/macintosh/via-cuda.c#L30" 3id="L14" 3class="line" name="L14">3  14<314stat    }href="drivers/macintosh/via-cuda.c#L12" 3id="L15" 3class="line" name="L15">3  15<31>#inc  href="drivers/macintosh/via-cuda.c#L12" 3i6="L15" 3class="line" name="L16">3  16<31>#inc    ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply_expec/edstat = 1 href="drivers/macintosh/via-cuda.c#L30" 3id="L17" 3class="line" name="L17">3  17<317
3  18<318#end    ref="+code=c_iAiass="sref">CONFistat = nef="+code=c_iA.c#L_wriveass="sref">CONF.c#L_wrivestat(ref="+code=c_iAreqass="sref">CONFreqstat);href="drivers/macintosh/via-cuda.c#L30" 3id="L19" 3class="line" name="L19">3  19<319stat    s  (ref="+code=c_iAiass="sref">CONFistat)href="drivers/macintosh/via-cuda.c#L31" 3id="L20" 3class="line" name="L20">3  20<320stat        rn falsref="+code=c_iAiass="sref">CONFistat href="drivers/macintosh/via-cuda.c#L12" 3dd="L11" 3class="line" name="L21">3  21<321stathref="drivers/macintosh/via-cuda.c#L30" 3dd="L12" 3llass="line" name="L12">3  12<322stat    s  (ref="+code=c_iAsyncass="sref">CONFsyncstat) {href="drivers/macintosh/via-cuda.c#L31" 3id="L23" 3class="line" name="L23">3  23<323stat        whunsi(!ref="+code=c_iAreqass="sref">CONFreqstat-
CONF.ntplevestat)href="drivers/macintosh/via-cuda.c#L31" 3id="L14" 3class="line" name="L24">3  24<324stat            nef="+code=c_iA.c#L_poll="s="sref">CONF.c#L_pollstat() href="drivers/macintosh/via-cuda.c#L30" 3dd="L15" 3class="line" name="L25">3  25<325stat    }href="drivers/macintosh/via-cuda.c#L12" 3id="L26" 3class="line" name="L26">3  26<3a>#inc    rn fals0 href="drivers/macintosh/via-cuda.c#L12" 3dd="L17" 3class="line" name="L27">3  27<3a>#end}href="drivers/macintosh/via-cuda.c#L12" 3id="L18" 3class="line" name="L28">3  28<328
3  29<329stathref="drivers/macintosh/via-cuda.c#L12" 3id="L30" 3class="line" name="L30">3  30<330statr class="comment"> * T/* Enable/disablerautopollang span>
3  31<33>static volash/href="drivers/macintosh/via-cuda.c#L31" 3id="L12" 33lass="line" name="L22">33 22<332statnef="+code=c_iA.c#L_adb_autopoll="s="sref">CONF.c#L_adb_autopollstat(sh/ ref="+code=c_iAdevs="s="sref">CONFdevsstat)href="drivers/macintosh/via-cuda.c#L31" 3id="L3" c3llass="line" name="L3"> 3  23<333stat{href="drivers/macintosh/via-cuda.c#L31" 3id="L14" 33lass="line" name="L24">33 24<334stat    struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat ref="+code=c_iAreqass="sref">CONFreqstat href="drivers/macintosh/via-cuda.c#L12" 3id="L15" 33lass="line" name="L25">33 25<335
33 26<336stat    s  ((ref="+code=c_iAcudass="sref">CONFcudstat == nef="+code=c_iANULLass="sref">CONFNULLstat) || !ref="+code=c_iA.c#L_fully_.hCONF.c#L_fully_.h33 27<337stat        rn fals-nef="+code=c_iAENXIOass="sref">CONFENXIOstat href="drivers/macintosh/via-cuda.c#L30" 3id="L18" 33lass="line" name="L28">33 28<338
33 29<339stat    ref="+code=c_iA.c#L_request="s="sref">CONF.c#L_requeststat(& ref="+code=c_iAreqass="sref">CONFreqstat,anef="+code=c_iANULLass="sref">CONFNULLstat, 3,anef="+code=c_iA als_PACKETass="sref">CONF als_PACKETstat,anef="+code=c_iA als_AUTOPOLLass="sref">CONF als_AUTOPOLLstat,a(ref="+code=c_iAdevs="s="sref">CONFdevsstat? 1: 0)) href="drivers/macintosh/via-cuda.c#L30" 34d="L30" 34lass="line" name="L30">34 30<340stat    whunsi(!ref="+code=c_iAreqass="sref">CONFreqstat.ref="+code=c_iAentpleveass="sref">CONF.ntplevestat)href="drivers/macintosh/via-cuda.c#L31" 34d="L31" 34lass="line" name="L31">34 31<341#inc        nef="+code=c_iA.c#L_poll="s="sref">CONF.c#L_pollstat() href="drivers/macintosh/via-cuda.c#L30" 34d="L12" 34lass="line" name="L22">34 22<342stat    rn fals0 href="drivers/macintosh/via-cuda.c#L12" 34d="L3" c34lass="line" name="L3"> 34 23<343stat}href="drivers/macintosh/via-cuda.c#L12" 34d="L4" c3llass="line" name="L4"> 3  24<344stathref="drivers/macintosh/via-cuda.c#L28" 34d="L15" 34lass="line" name="L25">34 25<345statn class="comment"> * T/* Reset adb bus - how do we do this?? span>
34 26<346static volash/href="drivers/macintosh/via-cuda.c#L31" 34d="L27" 34lass="line" name="L27">34 27<347
CONF.c#L_reset_adb_busstat(void)href="drivers/macintosh/via-cuda.c#L31" 34d="L18" 34lass="line" name="L28">34 28<34>#inc{href="drivers/macintosh/via-cuda.c#L31" 34d="L29" 34lass="line" name="L29">34 29<349stat    struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat ref="+code=c_iAreqass="sref">CONFreqstat href="drivers/macintosh/via-cuda.c#L12" 35d="L30" 35lass="line" name="L30">35 30<35>
35 31<351stat    s  ((ref="+code=c_iAcudass="sref">CONFcudstat == nef="+code=c_iANULLass="sref">CONFNULLstat) || !ref="+code=c_iA.c#L_fully_.hCONF.c#L_fully_.h35 22<352stat        rn fals-nef="+code=c_iAENXIOass="sref">CONFENXIOstat href="drivers/macintosh/via-cuda.c#L30" 35d="L3" c35lass="line" name="L3"> 35 23<353
 35 24<354stat    ref="+code=c_iA.c#L_request="s="sref">CONF.c#L_requeststat(& ref="+code=c_iAreqass="sref">CONFreqstat,anef="+code=c_iANULLass="sref">CONFNULLstat, 2,anef="+code=c_iAADB_PACKETass="sref">CONFADB_PACKETstat, 0)          n class="comment"> * T/* maybe? span>
 3  25<355stat    whunsi(!ref="+code=c_iAreqass="sref">CONFreqstat.ref="+code=c_iAentpleveass="sref">CONF.ntplevestat)href="drivers/macintosh/via-cuda.c#L31" 35d="L26" 35lass="line" name="L26">35 26<356stat        nef="+code=c_iA.c#L_poll="s="sref">CONF.c#L_pollstat() href="drivers/macintosh/via-cuda.c#L30" 35d="L27" 35lass="line" name="L27">35 27<35>#end    rn fals0 href="drivers/macintosh/via-cuda.c#L12" 35d="L18" 35lass="line" name="L28">35 28<358
35 29<359state

 * T/* IG_PPC"ADB span>
36 30<360statr class="comment"> * T/* Construct the sehe l .c#L request span>
36 31<36>statsh/href="drivers/macintosh/via-cuda.c#L31" 36d="L12" 36lass="line" name="L22">36 22<362statnef="+code=c_iA.c#L_request="s="sref">CONF.c#L_requeststat(struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *ref="+code=c_iAreqass="sref">CONFreqstat,avoid (*ref="+code=c_iA" id="s="sref">CONFd idstat)(struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *),href="drivers/macintosh/via-cuda.c#L31" 36d="L3" c36lass="line" name="L3"> 36 23<363stat             sh/ ref="+code=c_iAnbytes="s="sref">CONFnbytesstat,a...)href="drivers/macintosh/via-cuda.c#L31" 36d="L4" c36lass="line" name="L4"> 36 24<364stat{href="drivers/macintosh/via-cuda.c#L31" 36d="L25" 36lass="line" name="L5"> 36 25<365stat    ref="+code=c_iAva_list="s="sref">CONFva_liststat ref="+code=c_iAlist="s="sref">CONFliststat href="drivers/macintosh/via-cuda.c#L12" 36d="L26" 3llass="line" name="L16">3  26<36>#inc    sh/ ref="+code=c_iAiass="sref">CONFistat href="drivers/macintosh/via-cuda.c#L12" 36d="L27" 36lass="line" name="L27">36 27<367
36 28<368#end    a  (ref="+code=c_iAcudass="sref">CONFcudstat == nef="+code=c_iANULLass="sref">CONFNULLstat) {href="drivers/macintosh/via-cuda.c#L31" 36d="L29" 36lass="line" name="L29">36 29<369stat        ref="+code=c_iAreqass="sref">CONFreqstat-
CONF.ntplevestat = 1 href="drivers/macintosh/via-cuda.c#L30" 3dd="L30" 37lass="line" name="L30">37 30<370stat        rn fals-nef="+code=c_iAENXIOass="sref">CONFENXIOstat href="drivers/macintosh/via-cuda.c#L30" 3dd="L31" 37lass="line" name="L31">37 31<371stat    }href="drivers/macintosh/via-cuda.c#L12" 3dd="L22" 37lass="line" name="L22">37 22<372
 37 23<373stat    ref="+code=c_iAreqass="sref">CONFreqstat-
CONFnbytesstat = nef="+code=c_iAnbytes="s="sref">CONFnbytesstat href="drivers/macintosh/via-cuda.c#L30" 3dd="L4" c37lass="line" name="L4"> 37 24<374stat    ref="+code=c_iAreqass="sref">CONFreqstat-
CONFd idstat = nef="+code=c_iA" id="s="sref">CONFd idstat href="drivers/macintosh/via-cuda.c#L30" 3dd="L25" 37lass="line" name="L5"> 37 25<375stat    ref="+code=c_iAva_ic rt="s="sref">CONFcL_ic rtstat(ref="+code=c_iAlist="s="sref">CONFliststat,anef="+code=c_iAnbytes="s="sref">CONFnbytesstat) href="drivers/macintosh/via-cuda.c#L30" 3dd="L26" 37lass="line" name="L6"> 37 26<37>#inc    for (ref="+code=c_iAiass="sref">CONFistat = 0  ref="+code=c_iAiass="sref">CONFistat <  ref="+code=c_iAnbytes="s="sref">CONFnbytesstat  ++ref="+code=c_iAiass="sref">CONFistat)href="drivers/macintosh/via-cuda.c#L31" 3dd="L27" 3llass="line" name="L7"> 3  27<377stat        ref="+code=c_iAreqass="sref">CONFreqstat-
CONFdatastat[ref="+code=c_iAiass="sref">CONFistat] = nef="+code=c_iAcL_artass="sref">CONFcL_artstat(ref="+code=c_iAlist="s="sref">CONFliststat,ash/) href="drivers/macintosh/via-cuda.c#L30" 3dd="L18" 37lass="line" name="L28">37 28<378#end    ref="+code=c_iAcL_endass="sref">CONFcL_endstat(ref="+code=c_iAlist="s="sref">CONFliststat) href="drivers/macintosh/via-cuda.c#L30" 3dd="L29" 37lass="line" name="L29">37 29<379stat    ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply_expec/edstat = 1 href="drivers/macintosh/via-cuda.c#L30" 38d="L30" 38lass="line" name="L30">38 30<380stat    rn falsref="+code=c_iA.c#L_wriveass="sref">CONF.c#L_wrivestat(ref="+code=c_iAreqass="sref">CONFreqstat);href="drivers/macintosh/via-cuda.c#L30" 38d="L31" 38lass="line" name="L31">38 31<381stat}href="drivers/macintosh/via-cuda.c#L12" 38d="L22" 38lass="line" name="L22">38 22<382
 38 23<383static volash/href="drivers/macintosh/via-cuda.c#L21" 38d="L4" c38lass="line" name="L4"> 38 24<384statref="+code=c_iA.c#L_wriveass="sref">CONF.c#L_wrivestat(struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *ref="+code=c_iAreqass="sref">CONFreqstat)href="drivers/macintosh/via-cuda.c#L31" 38d="L25" 38lass="line" name="L5"> 38 25<38>#inc{href="drivers/macintosh/via-cuda.c#L31" 38d="L6" c38lass="line" name="L6"> 38 26<38>#inc    unsig.ed long ref="+code=c_iAflags="s="sref">CONFflagsstat href="drivers/macintosh/via-cuda.c#L30" 38d="L7" c38lass="line" name="L7"> 38 27<387
 3  28<388#end    a  (ref="+code=c_iAreqass="sref">CONFreqstat-
CONFnbytesstat <  2 || ref="+code=c_iAreqass="sref">CONFreqstat-
CONFdatastat[0] 
CONF als_PACKETstat) {href="drivers/macintosh/via-cuda.c#L31" 38d="L29" 38lass="line" name="L29">38 29<389stat        ref="+code=c_iAreqass="sref">CONFreqstat-
CONF.ntplevestat = 1 href="drivers/macintosh/via-cuda.c#L30" 39d="L30" 39lass="line" name="L30">39 30<390stat        rn fals-nef="+code=c_iAEINVALass="sref">CONFEINVALstat href="drivers/macintosh/via-cuda.c#L30" 39d="L31" 39lass="line" name="L31">39 31<391stat    }href="drivers/macintosh/via-cuda.c#L12" 39d="L22" 39lass="line" name="L22">39 22<392stat    ref="+code=c_iAreqass="sref">CONFreqstat-
CONFnextstat = nef="+code=c_iANULLass="sref">CONFNULLstat href="drivers/macintosh/via-cuda.c#L30" 39d="L3" c39lass="line" name="L3"> 39 23<393stat    ref="+code=c_iAreqass="sref">CONFreqstat-
CONFs> *stat = 0 href="drivers/macintosh/via-cuda.c#L30" 39d="L4" c39lass="line" name="L4"> 39 24<394stat    ref="+code=c_iAreqass="sref">CONFreqstat-
CONF.ntplevestat = 0 href="drivers/macintosh/via-cuda.c#L30" 39d="L25" 39lass="line" name="L5"> 39 25<395stat    ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply_lenstat = 0 href="drivers/macintosh/via-cuda.c#L30" 39d="L6" c39lass="line" name="L6"> 39 26<39>#inchref="drivers/macintosh/via-cuda.c#L30" 39d="L7" c39lass="line" name="L7"> 39 27<39>#end    ref="+code=c_iAspin_lock_irqsaveass="sref">CONFspin_lock_irqsavestat(& ref="+code=c_iA.c#L_lockass="sref">CONF.c#L_lockstat,anef="+code=c_iAflags="s="sref">CONFflagsstat);href="drivers/macintosh/via-cuda.c#L30" 39d="L8" c39lass="line" name="L8"> 39 28<398#end    a  (ref="+code=c_iAcurr> *_reqass="sref">CONFcurr> *_req#end != 0) {href="drivers/macintosh/via-cuda.c#L30" 39d="L29" 3llass="line" name="L9"> 3  29<399stat        ref="+code=c_iA="l*_reqass="sref">CONF="l*_reqstat-
CONFnextstat = nef="+code=c_iAreqass="sref">CONFreqstat href="drivers/macintosh/via-cuda.c#L12" 40d="L10" 4llass="line" name="L10">4  30<400stat        ref="+code=c_iA="l*_reqass="sref">CONF="l*_reqstat = nef="+code=c_iAreqass="sref">CONFreqstat href="drivers/macintosh/via-cuda.c#L12" 401="L10" 4llass="line" name="L31">40130<401stat    } 
40230<402stat        ref="+code=c_iAcurr> *_reqass="sref">CONFcurr> *_req#end = nef="+code=c_iAreqass="sref">CONFreqstat href="drivers/macintosh/via-cuda.c#L12" 403="L12" 40lass="line" name="L3"> 40330<403  30<400stat        ref="+code=c_iA="l*_reqass="sref">CONF="l*_reqstat = nef="+code=c_iAreqass="sref">CONFreqstat href="drivers/macintosh/via-cuda.c4="L12" 40="L4"> 39 24<394stat   430<3 404stat        a  (ref="+code=c_iAcu#L_ic veass="sref">CONF.c#L_ic vestat == nef="+code=c_iAidleass="sref">CONFidlestat)href="drivers/macintosh/via-cuda.c#L31" 40d="L15" 40lass="line" name="L15">40530<405stat            ref="+code=c_iAcu#L_ic rt="s="sref">CONFcu#L_ic rtstat() href="drivers/macintosh/via-cuda.c#L30" 406="L15" 40lass="line" name="L6"> 40630<40>#inc    }href="drivers/macintosh/via-cuda.c#L12" 40d="L17" 40lass="line" name="L17">40730<40>#end    ref="+code=c_iAspin_unlock_irqrestoreass="sref">CONFspin_unlock_irqrestorestat(& ref="+code=c_iA.c#L_lockass="sref">CONF.c#L_lockstat,anef="+code=c_iAflags="s="sref">CONFflagsstat);href="drivers/macintosh/via-cuda.c#L30" 408="L17" 40lass="line" name="L8"> 40830<408
40930<409stat    rn fals0 href="drivers/macintosh/via-cuda.c#L12" 4id="L10" 4class="line" name="L10">4  10<41>
4 130<411stathref="drivers/macintosh/via-cuda.c#L30" 4id="L12" 4class="line" name="L12">4  12<412static volavoidhref="drivers/macintosh/via-cuda.c#L30" 4i3="L12" 4class="line" name="L13">4  13<413statref="+code=c_iAcu#L_ic rt="s="sref">CONFcu#L_ic rtstat(void)href="drivers/macintosh/via-cuda.c#L31" 4id="L14" 4class="line" name="L14">4  14<414stat{href="drivers/macintosh/via-cuda.c#L31" 4id="L15" 4class="line" name="L15">4  15<415stat    struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *ref="+code=c_iAreqass="sref">CONFreqstat href="drivers/macintosh/via-cuda.c#L12" 4i6="L15" 4class="line" name="L16">4  16<41>#inchref="drivers/macintosh/via-cuda.c#L30" 4id="L17" 4class="line" name="L17">4  17<41>#end    r class="comment"> * T/* acoert .c#L_ic ve == idle span>
4  18<418#end    r class="comment"> * T/* get the packet to sehe span>
4  19<419stat    ref="+code=c_iAreqass="sref">CONFreqstat = nef="+code=c_iA.crr> *_reqass="sref">CONFcurr> *_req#end href="drivers/macintosh/via-cuda.c#L12" 4id="L20" 4class="line" name="L20">4  20<420stat    a  (ref="+code=c_iAreqass="sref">CONFreqstat == 0)href="drivers/macintosh/via-cuda.c#L12" 4id="L11" 4class="line" name="L21">4  21<421#inc        rn fal href="drivers/macintosh/via-cuda.c#L12" 4id="L12" 4llass="line" name="L12">4  12<422stat    s  ((ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) &  ref="+code=c_iATREQass="sref">CONFTREQstat) == 0)href="drivers/macintosh/via-cuda.c#L12" 4i3="L12" 4class="line" name="L23">4  23<423stat        rn fal                  n class="comment"> * T/* a byte is entang ir from the  alsrspan>
4  24<424stathref="drivers/macintosh/via-cuda.c#L28" 4dd="L15" 4class="line" name="L25">4  25<425stat    r class="comment"> * T/* set the shift rngister to shift out the sehe l byte span>
4  26<42>#inc    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAACRass="sref">CONFACRstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAACRass="sref">CONFACRstat]) | ref="+code=c_iASR_OUTass="sref">CONFSR_OUTstat);href="drivers/macintosh/via-cuda.c#L30" 4dd="L17" 4class="line" name="L27">4  27<42>#end    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat], ref="+code=c_iAreqass="sref">CONFreqstat-
CONFdatastat[0]);href="drivers/macintosh/via-cuda.c#L30" 4dd="L18" 4class="line" name="L28">4  28<428#end    ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) &  ~ref="+code=c_iATIPass="sref">CONFTIPstat) href="drivers/macintosh/via-cuda.c#L30" 4dd="L19" 4class="line" name="L29">4  29<429stat    ref="+code=c_iA.c#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAs> *_first_byte ss="sref">CONFs> *_first_byte#end href="drivers/macintosh/via-cuda.c#L12" 4id="L30" 4class="line" name="L30">4  30<43>
4  31<431stathref="drivers/macintosh/via-cuda.c#L30" 4id="L12" 43lass="line" name="L22">43 22<432statvoidhref="drivers/macintosh/via-cuda.c#L30" 4id="L3" c4llass="line" name="L3"> 4  23<433statref="+code=c_iAcu#L_poll="s="sref">CONF.c#L_pollstat(void)href="drivers/macintosh/via-cuda.c#L31" 4id="L14" 43lass="line" name="L24">43 24<434stat{href="drivers/macintosh/via-cuda.c#L31" 4id="L15" 43lass="line" name="L25">43 25<435stat    r class="comment"> * T/* .c#L_irupt.h
43 26<436statr class="comment"> * T     *rihupt.h
43 27<437statr class="comment"> * T     *pan>
43 28<438#end    a  (ref="+code=c_iAcu#L_irqass="sref">CONFcu#L_irqstat)href="drivers/macintosh/via-cuda.c#L31" 43d="L29" 43lass="line" name="L29">43 29<439stat        ref="+code=c_iAdisable_irqass="sref">CONFdisable_irqstat(ref="+code=c_iAcu#L_irqass="sref">CONFcu#L_irqstat) href="drivers/macintosh/via-cuda.c#L12" 44d="L30" 44lass="line" name="L30">44 30<440stat    ref="+code=c_iAcu#L_ihupt.hCONFcu#L_ihupt.hCONFNULLstat) href="drivers/macintosh/via-cuda.c#L12" 44d="L31" 44lass="line" name="L31">44 31<441#inc    a  (ref="+code=c_iAcu#L_irqass="sref">CONFcu#L_irqstat)href="drivers/macintosh/via-cuda.c#L31" 44d="L12" 44lass="line" name="L22">44 22<442stat        ref="+code=c_iAenable_irqass="sref">CONFenable_irqstat(ref="+code=c_iAcu#L_irqass="sref">CONFcu#L_irqstat) href="drivers/macintosh/via-cuda.c#L12" 44d="L3" c44lass="line" name="L3"> 44 23<443stat}href="drivers/macintosh/via-cuda.c#L12" 44d="L4" c4llass="line" name="L4"> 4  24<444stathref="drivers/macintosh/via-cuda.c#L28" 44d="L15" 44lass="line" name="L25">44 25<445static volaref="+code=c_iAirqre fal_/ass="sref">CONFirqre fal_/stathref="drivers/macintosh/via-cuda.c#L28" 44d="L26" 44lass="line" name="L26">44 26<446statref="+code=c_iAcu#L_ihupt.hCONFcu#L_ihupt.hCONFirqstat,avoid *ref="+code=c_iAartass="sref">CONFartstat)href="drivers/macintosh/via-cuda.c#L31" 44d="L17" 44lass="line" name="L27">44 27<447
44 28<448#end    ah/ ref="+code=c_iAsc vus="s="sref">CONFsc vus#end href="drivers/macintosh/via-cuda.c#L12" 44d="L29" 44lass="line" name="L29">44 29<449stat    struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *ref="+code=c_iAreqass="sref">CONFreqstat = nef="+code=c_iANULLass="sref">CONFNULLstat href="drivers/macintosh/via-cuda.c#L30" 45d="L30" 45lass="line" name="L30">45 30<450stat    unsig.ed char ref="+code=c_iAibufass="sref">CONFibufstat[16] href="drivers/macintosh/via-cuda.c#L30" 45d="L31" 45lass="line" name="L31">45 31<451stat    sh/ ref="+code=c_iAibuf_lenass="sref">CONFibuf_lenstat = 0 href="drivers/macintosh/via-cuda.c#L30" 45d="L12" 45lass="line" name="L22">45 22<452stat    sh/ ref="+code=c_iAentpleveass="sref">CONF.ntplevestat = 0 href="drivers/macintosh/via-cuda.c#L30" 45d="L3" c45lass="line" name="L3"> 45 23<453stat    href="drivers/macintosh/via-cuda.c#L30" 45d="L4" c45lass="line" name="L4"> 45 24<454stat    ref="+code=c_iAspin_lockass="sref">CONFspin_lockstat(& ref="+code=c_iA.c#L_lockass="sref">CONF.c#L_lockstat) href="drivers/macintosh/via-cuda.c#L12" 45d="L15" 4llass="line" name="L5"> 4  25<455
45 26<45>#inc    r class="comment"> * T/* On powermacs, this htheler is rngistered for the (verIRQ. But they usean>
45 27<457statr class="comment"> * T     * just the shift rngister IRQ -- other (verirupt.h
45 28<458
 * T     * On m68k macs, the (verIRQ sources lre dispatched individually. Unlessan>
45 29<459statr class="comment"> * T     * we lre pollang, the shift rngister IRQ flag hts llready been cleared.an>
46 30<460statr class="comment"> * T     *pan>
46 31<461stathref="drivers/macintosh/via-cuda.c#L30" 46d="L12" 46lass="line" name="L22">46 22<462statlu CONFIG_PPC"MACstathref="drivers/macintosh/via-cuda.c#L30" 46d="L3" c46lass="line" name="L3"> 46 23<463stat    a  (!ref="+code=c_iAartass="sref">CONFartstat)href="drivers/macintosh/via-cuda.c#L31" 46d="L4" c46lass="line" name="L4"> 46 24<464statlf
 46 25<465stat    {href="drivers/macintosh/via-cuda.c#L31" 46d="L26" 4llass="line" name="L16">4  26<466stat        s  ((ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIFRass="sref">CONFIFRstat]) &  ref="+code=c_iASR_INTass="sref">CONFSR_INTstat) == 0) {href="drivers/macintosh/via-cuda.c#L31" 46d="L27" 46lass="line" name="L27">46 27<467stat            ref="+code=c_iAspin_unlockass="sref">CONFspin_unlockstat(& ref="+code=c_iA.c#L_lockass="sref">CONF.c#L_lockstat) href="drivers/macintosh/via-cuda.c#L12" 46d="L18" 46lass="line" name="L28">46 28<468#end            rn fal ref="+code=c_iAIRQ_NONEass="sref">CONFIRQ_NONEstat href="drivers/macintosh/via-cuda.c#L30" 46d="L29" 46lass="line" name="L29">46 29<469stat        } 
47 30<470stat            ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAIFRass="sref">CONFIFRstat], ref="+code=c_iASR_INTass="sref">CONFSR_INTstat);href="drivers/macintosh/via-cuda.c#L30" 4dd="L31" 47lass="line" name="L31">47 31<471#inc        }href="drivers/macintosh/via-cuda.c#L12" 4dd="L22" 47lass="line" name="L22">47 22<472stat    }href="drivers/macintosh/via-cuda.c#L12" 4dd="L3" c47lass="line" name="L3"> 47 23<473stat    href="drivers/macintosh/via-cuda.c#L30" 4dd="L4" c47lass="line" name="L4"> 47 24<474stat    ref="+code=c_iAsc vus="s="sref">CONFsc vus#end = (~ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) &  (ref="+code=c_iATIPass="sref">CONFTIPstat|ref="+code=c_iATREQass="sref">CONFTREQstat)) | (ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAACRass="sref">CONFACRstat]) &  ref="+code=c_iASR_OUTass="sref">CONFSR_OUTstat);href="drivers/macintosh/via-cuda.c#L30" 4dd="L25" 47lass="line" name="L5"> 47 25<475stat    r class="comment"> * T/* prsh/k("cu#L_ihupt.h
 47 26<47>#inc    switch (ref="+code=c_iAcu#L_ic veass="sref">CONF.c#L_ic vestat) {href="drivers/macintosh/via-cuda.c#L31" 4dd="L27" 4llass="line" name="L7"> 4  27<477stat    caa  ref="+code=c_iAidleass="sref">CONFidlestat:href="drivers/macintosh/via-cuda.c#L31" 4dd="L18" 47lass="line" name="L28">47 28<478#end        r class="comment"> * T/* Calsrhts s> * us the first byte of data - unsolic
47 29<479stat        s  (ref="+code=c_iAsc vus="s="sref">CONFsc vus#end != nef="+code=c_iATREQass="sref">CONFTREQstat)href="drivers/macintosh/via-cuda.c#L11" 48d="L30" 48lass="line" name="L30">48 30<480stat            ref="+code=c_iAprsh/kass="sref">CONFprsh/kstat(r class="commicrotta>".c#L: ic ve=idle, sc vus=%x\n"an>
CONFsc vus#end);href="drivers/macintosh/via-cuda.c#L30" 48d="L31" 48lass="line" name="L31">48 31<481#inc        (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat]) href="drivers/macintosh/via-cuda.c#L30" 48d="L22" 48lass="line" name="L22">48 22<482stat        ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) &  ~ref="+code=c_iATIPass="sref">CONFTIPstat) href="drivers/macintosh/via-cuda.c#L30" 48d="L3" c48lass="line" name="L3"> 48 23<483  30<400stat        ref="+c.c#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAreadottass="sref">CONFreadottstat href="drivers/macintosh/via-cuda.c#L30" 48d="L4" c48lass="line" name="L4"> 48 24<484  30<400stat        ref="+creply_ptrass="sref">CONFreply_ptrstat = ref="+code=c_iA.c#L_rbufass="sref">CONF.c#L_rbufstat href="drivers/macintosh/via-cuda.c#L30" 48d="L25" 48lass="line" name="L5"> 48 25<485  30<400stat        ref="+creadott_replyass="sref">CONFreadott_replystat = 0 href="drivers/macintosh/via-cuda.c#L30" 48d="L6" c48lass="line" name="L6"> 48 26<486stat        break href="drivers/macintosh/via-cuda.c#L30" 48d="L27" 48lass="line" name="L7"> 48 27<487
 4  28<488#end    caa  ref="+code=c_iAawaitott_replyass="sref">CONFawaitott_replystat:href="drivers/macintosh/via-cuda.c#L31" 48d="L29" 48lass="line" name="L29">48 29<489stat        r class="comment"> * T/* Calsrhts s> * us the first byte of data of L reply *pan>
49 30<490stat        s  (ref="+code=c_iAsc vus="s="sref">CONFsc vus#end != nef="+code=c_iATREQass="sref">CONFTREQstat)href="drivers/macintosh/via-cuda.c#L11" 49d="L31" 49lass="line" name="L31">49 31<491stat            ref="+code=c_iAprsh/kass="sref">CONFprsh/kstat(r class="commicrotta>".c#L: ic ve=awaitott_reply, sc vus=%x\n"an>
CONFsc vus#end);href="drivers/macintosh/via-cuda.c#L30" 49d="L22" 49lass="line" name="L22">49 22<492#inc        (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat]) href="drivers/macintosh/via-cuda.c#L30" 49d="L3" c49lass="line" name="L3"> 49 23<493  30<400stat        ref="+cout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) &  ~ref="+code=c_iATIPass="sref">CONFTIPstat) href="drivers/macintosh/via-cuda.c#L30" 49d="L4" c49lass="line" name="L4"> 49 24<494  30<400stat        ref="+c.c#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAreadottass="sref">CONFreadottstat href="drivers/macintosh/via-cuda.c#L30" 49d="L25" 49lass="line" name="L5"> 49 25<495  30<400stat        ref="+creply_ptrass="sref">CONFreply_ptrstat = ref="+code=c_iA.crr> *_reqass="sref">CONFcurr> *_req#end-
CONFreplystat href="drivers/macintosh/via-cuda.c#L30" 49d="L6" c49lass="line" name="L6"> 49 26<496stat        nef="+code=c_iAreadott_replyass="sref">CONFreadott_replystat = 1 href="drivers/macintosh/via-cuda.c#L30" 49d="L7" c49lass="line" name="L7"> 49 27<497stat        break href="drivers/macintosh/via-cuda.c#L30" 49d="L8" c49lass="line" name="L8"> 49 28<498
 4  29<499stat    caa  ref="+code=c_iAs> *_first_byte ss="sref">CONFs> *_first_byte#end:href="drivers/macintosh/via-cuda.c#L31" 50d="L10" 5llass="line" name="L10">5  30<500stat        s  (ref="+code=c_iAsc vus="s="sref">CONFsc vus#end == nef="+code=c_iATREQass="sref">CONFTREQstat + nef="+code=c_iATIPass="sref">CONFTIPstat + nef="+code=c_iASR_OUTass="sref">CONFSR_OUTstat) {href="drivers/macintosh/via-cuda.c#L31" 501="L10" 5llass="line" name="L31">50130<501stat            r class="comment"> * T/* .ollasion *pan>
50230<502stat        stat        ref="+cout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAACRass="sref">CONFACRstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAACRass="sref">CONFACRstat]) &  ~ref="+code=c_iASR_OUTass="sref">CONFSR_OUTstat);href="drivers/macintosh/via-cuda.c#L30" 503="L12" 50lass="line" name="L3"> 50330<503stat            (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat]) href="drivers/macintosh/via-cuda.c#L30" 5c4="L12" 50="L4"> 39 24<394stat   530<3 504stat        stat        ref="+cout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) | ref="+code=c_iATIPass="sref">CONFTIPstat | ref="+code=c_iATACKass="sref">CONFTACKstat);href="drivers/macintosh/via-cuda.c#L30" 505="L12" 50lass="line" name="L5"> 50530<505stat            ref="+code=c_iAcu#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAidleass="sref">CONFidlestat;href="drivers/macintosh/via-cuda.c#L30" 506="L12" 50lass="line" name="L6"> 50630<506stat        } 
50730<507stat            r class="comment"> * T/* acoert sc vus == TIP + SR_OUT *pan>
 50830<508#end            s  (ref="+code=c_iAsc vus="s="sref">CONFsc vus#end != nef="+code=c_iATIPass="sref">CONFTIPstat + nef="+code=c_iASR_OUTass="sref">CONFSR_OUTstat)href="drivers/macintosh/via-cuda.c#L11" 509="L17" 50lass="line" name="L9"> 50930<509#end                ref="+code=c_iAprsh/kass="sref">CONFprsh/kstat(r class="commicrotta>".c#L: ic ve=s> *_first_byte sc vus=%x\n"an>
CONFsc vus#end);href="drivers/macintosh/via-cuda.c#L30" 5id="L10" 5class="line" name="L10">5  10<510stat            ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat], ref="+code=c_iA.crr> *_reqass="sref">CONFcurr> *_req#end-
CONFdatastat[1]) href="drivers/macintosh/via-cuda.c#L30" 5id="L11" 5llass="line" name="L11">5 130<511stat            ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) ^ ref="+code=c_iATACKass="sref">CONFTACKstat);href="drivers/macintosh/via-cuda.c#L30" 5id="L12" 5class="line" name="L12">5  12<512stat        stat        ref="+cdata_index="s="sref">CONFdata_indexstat = 2;href="drivers/macintosh/via-cuda.c#L30" 5i3="L12" 5class="line" name="L13">5  13<513stat            ref="+code=c_iAcu#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAseheottass="sref">CONFseheottstat;href="drivers/macintosh/via-cuda.c#L30" 5id="L14" 5class="line" name="L14">5  14<514stat        }href="drivers/macintosh/via-cuda.c#L12" 5id="L15" 5class="line" name="L15">5  15<515stat        break href="drivers/macintosh/via-cuda.c#L30" 5i6="L15" 5class="line" name="L16">5  16<51>#inchref="drivers/macintosh/via-cuda.c#L30" 5id="L17" 5class="line" name="L17">5  17<517stat    caa  ref="+code=c_iAseheottass="sref">CONFseheottstat:href="drivers/macintosh/via-cuda.c#L31" 5id="L18" 5class="line" name="L18">5  18<518#end        ref="+code=c_iAreqass="sref">CONFreqstat = nef="+code=c_iA.crr> *_reqass="sref">CONFcurr> *_req#end href="drivers/macintosh/via-cuda.c#L12" 5id="L19" 5class="line" name="L19">5  19<519stat        s  (ref="+code=c_iAdata_index="s="sref">CONFdata_indexstat 
CON-
CONFnbytesstat) {href="drivers/macintosh/via-cuda.c#L31" 5id="L20" 5class="line" name="L20">5  20<520stat            ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAACRass="sref">CONFACRstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iAACRass="sref">CONFACRstat]) &  ~ref="+code=c_iASR_OUTass="sref">CONFSR_OUTstat);href="drivers/macintosh/via-cuda.c#L30" 5id="L11" 5class="line" name="L21">5  21<521stat            (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat]) href="drivers/macintosh/via-cuda.c#L30" 5id="L12" 5llass="line" name="L12">5  12<522stat        stat        ref="+cout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) | ref="+code=c_iATACKass="sref">CONFTACKstat | ref="+code=c_iATIPass="sref">CONFTIPstat) href="drivers/macintosh/via-cuda.c#L30" 5i3="L12" 5class="line" name="L23">5  23<523stat            ref="+code=c_iAreqass="sref">CONFreqstat-
CONFs> *stat = 1 href="drivers/macintosh/via-cuda.c#L30" 5id="L14" 5class="line" name="L24">5  24<524stat        stata  (ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply_expec/edstat) {href="drivers/macintosh/via-cuda.c#L31" 5id="L15" 5class="line" name="L25">5  25<525stat                ref="+code=c_iAcu#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAawaitott_replyass="sref">CONFawaitott_replystat href="drivers/macintosh/via-cuda.c#L30" 5i6="L15" 5class="line" name="L26">5  26<526stat            } 
5  27<527stat                ref="+code=c_iAcurr> *_reqass="sref">CONFcurr> *_req#end = nef="+code=c_iAreqass="sref">CONFreqstat-
CONFnextstat href="drivers/macintosh/via-cuda.c#L30" 5id="L18" 5class="line" name="L28">5  28<528#end                ref="+code=c_iAcntpleveass="sref">CONF.ntplevestat = 1 href="drivers/macintosh/via-cuda.c#L30" 5dd="L19" 5class="line" name="L29">5  29<529#end                r class="comment"> * T/* not sure about this *pan>
5  30<530stat                ref="+code=c_iAcu#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAidleass="sref">CONFidlestat;href="drivers/macintosh/via-cuda.c#L30" 5id="L31" 5class="line" name="L31">5  31<531stat                ref="+code=c_iAcu#L_ic rt="s="sref">CONFcu#L_ic rtstat() href="drivers/macintosh/via-cuda.c#L30" 5id="L12" 53lass="line" name="L22">53 22<532stat        stat}href="drivers/macintosh/via-cuda.c#L12" 5id="L3" c5llass="line" name="L3"> 5  23<533stat        } 
53 24<534stat        stat        ref="+cout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat], ref="+code=c_iAreqass="sref">CONFreqstat-
CONFdatastat[ref="+code=c_iAdata_index="s="sref">CONFdata_indexstat++]) href="drivers/macintosh/via-cuda.c#L30" 5id="L15" 53lass="line" name="L25">53 25<535stat            ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) ^ ref="+code=c_iATACKass="sref">CONFTACKstat);href="drivers/macintosh/via-cuda.c#L30" 53d="L26" 53lass="line" name="L26">53 26<536stat        }href="drivers/macintosh/via-cuda.c#L30" 53d="L17" 53lass="line" name="L27">53 27<537stat        break href="drivers/macintosh/via-cuda.c#L30" 5id="L18" 53lass="line" name="L28">53 28<538
53 29<539stat    caa  ref="+code=c_iAreadottass="sref">CONFreadottstat:href="drivers/macintosh/via-cuda.c#L31" 54d="L30" 54lass="line" name="L30">54 30<540stat        *ref="+code=c_iAreply_ptrass="sref">CONFreply_ptrstat++ = ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat]) href="drivers/macintosh/via-cuda.c#L30" 54d="L31" 54lass="line" name="L31">54 31<541stat        s  (ref="+code=c_iAsc vus="s="sref">CONFsc vus#end == nef="+code=c_iATIPass="sref">CONFTIPstat) {href="drivers/macintosh/via-cuda.c#L30" 54d="L12" 54lass="line" name="L22">54 22<542stat        stat  class="comment"> * T/* that's lll folks *pan>
 54 23<543stat            ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) | ref="+code=c_iATACKass="sref">CONFTACKstat | ref="+code=c_iATIPass="sref">CONFTIPstat) href="drivers/macintosh/via-cuda.c#L30" 54d="L4" c5llass="line" name="L4"> 5  24<544stat        stat        ref="+c.c#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAread_" id="s="sref">CONFread_" idstat;href="drivers/macintosh/via-cuda.c#L30" 54d="L15" 54lass="line" name="L25">54 25<545stat        } 
54 26<546stat            r class="comment"> * T/* acoert sc vus == TIP | TREQ *pan>
54 27<547stat            s  (ref="+code=c_iAsc vus="s="sref">CONFsc vus#end != nef="+code=c_iATIPass="sref">CONFTIPstat + nef="+code=c_iATREQass="sref">CONFTREQstat)href="drivers/macintosh/via-cuda.c#L11" 54d="L18" 54lass="line" name="L28">54 28<548#end                ref="+code=c_iAprsh/kass="sref">CONFprsh/kstat(r class="commicrotta>".c#L: ic ve=readott sc vus=%x\n"an>
CONFsc vus#end);href="drivers/macintosh/via-cuda.c#L30" 54d="L29" 54lass="line" name="L29">54 29<549#end            ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) ^ ref="+code=c_iATACKass="sref">CONFTACKstat);href="drivers/macintosh/via-cuda.c#L30" 55d="L30" 55lass="line" name="L30">55 30<550stat        }href="drivers/macintosh/via-cuda.c#L30" 55d="L31" 55lass="line" name="L31">55 31<551stat        break href="drivers/macintosh/via-cuda.c#L30" 55d="L12" 55lass="line" name="L22">55 22<552
 55 23<553stat    caa  ref="+code=c_iAread_" id="s="sref">CONFread_" idstat:href="drivers/macintosh/via-cuda.c#L31" 55d="L4" c55lass="line" name="L4"> 55 24<554stat        (void)ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iASRass="sref">CONFSRstat]) href="drivers/macintosh/via-cuda.c#L30" 55d="L15" 5llass="line" name="L5"> 5  25<555stat        a  (ref="+code=c_iAreadott_replyass="sref">CONFreadott_replystat) {href="drivers/macintosh/via-cuda.c#L30" 55d="L26" 55lass="line" name="L26">55 26<556stat            ref="+code=c_iAreqass="sref">CONFreqstat = nef="+code=c_iA.crr> *_reqass="sref">CONFcurr> *_req#end href="drivers/macintosh/via-cuda.c#L12" 55d="L27" 55lass="line" name="L27">55 27<557stat            ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply_lenstat = ref="+code=c_iAreply_ptrass="sref">CONFreply_ptrstat - ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply#end href="drivers/macintosh/via-cuda.c#L12" 55d="L18" 55lass="line" name="L28">55 28<558#end            s  (ref="+code=c_iAreqass="sref">CONFreqstat-
CONFdatastat[0] == nef="+code=c_iAADB_PACKETass="sref">CONFADB_PACKETstat) {href="drivers/macintosh/via-cuda.c#L30" 55d="L29" 55lass="line" name="L29">55 29<559#end                r class="comment"> * T/* Have to adjust the reply from ADB entmands *pan>
56 30<560stat                a  (ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply_lenstat &la re2 || (ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply#end[1] &  2) != 0) {href="drivers/macintosh/via-cuda.c#L30" 56d="L31" 56lass="line" name="L31">56 31<561stat                    r class="comment"> * T/* the 0x2 bit indic ves no response span>
56 22<562stat        stat        ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply_lenstat = 0 href="drivers/macintosh/via-cuda.c#L30" 56d="L3" c56lass="line" name="L3"> 56 23<563stat                } 
 56 24<564stat        stat        r class="comment"> * T/* leave just the entmand the result bytes ir the reply span>
 56 25<565stat                    ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply_lenstat -= 2;href="drivers/macintosh/via-cuda.c#L30" 56d="L26" 5llass="line" name="L16">5  26<566stat                    ref="+code=c_iAmemmoveass="sref">CONFmemmovestat(ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply#end, ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply#end + 2, ref="+code=c_iAreqass="sref">CONFreqstat-
CONFreply_lenstat) href="drivers/macintosh/via-cuda.c#L30" 56d="L27" 56lass="line" name="L27">56 27<567stat                }href="drivers/macintosh/via-cuda.c#L30" 56d="L18" 56lass="line" name="L28">56 28<568#end            }href="drivers/macintosh/via-cuda.c#L30" 56d="L29" 56lass="line" name="L29">56 29<569#end            ref="+code=c_iAcurr> *_reqass="sref">CONFcurr> *_req#end = nef="+code=c_iAreqass="sref">CONFreqstat-
CONFnextstat href="drivers/macintosh/via-cuda.c#L30" 5dd="L30" 57lass="line" name="L30">57 30<570stat            ref="+code=c_iAcntpleveass="sref">CONF.ntplevestat = 1 href="drivers/macintosh/via-cuda.c#L30" 5dd="L31" 57lass="line" name="L31">57 31<571#inc        } 
57 22<572stat        stat  class="comment"> * T/* This is tricky. We must break the spinlock to callst>
 57 23<573statr class="comment"> * T             * .c#L_irput. Howe/ma, doott so means we might getst>
 57 24<574statr class="comment"> * T             * re-ehupted from another CPU gettang thrirupt.h
 57 25<575statr class="comment"> * T             * or callang .c#L_poll(). I ended up usang the stackst>
 57 26<576statr class="comment"> * T             * (it's only for 16 bytes) the movang the actualst>
 5  27<577statr class="comment"> * T             * .lll to cc#L_irput to outside of the lock.an>
57 28<578
 * T             *pan>
57 29<579#end            ref="+code=c_iAibuf_lenass="sref">CONFibuf_lenstat = ref="+code=c_iAreply_ptrass="sref">CONFreply_ptrstat - ref="+code=c_iA.c#L_rbufass="sref">CONF.c#L_rbufstat href="drivers/macintosh/via-cuda.c#L30" 58d="L30" 58lass="line" name="L30">58 30<580stat            ref="+code=c_iAmemcpyass="sref">CONFmemcpystat(ref="+code=c_iAibufass="sref">CONFibufstat, ref="+code=c_iA.c#L_rbufass="sref">CONF.c#L_rbufstat, ref="+code=c_iAibuf_lenass="sref">CONFibuf_lenstat) href="drivers/macintosh/via-cuda.c#L30" 58d="L31" 58lass="line" name="L31">58 31<581#inc        }href="drivers/macintosh/via-cuda.c#L30" 58d="L22" 58lass="line" name="L22">58 22<582stat        s  (ref="+code=c_iAsc vus="s="sref">CONFsc vus#end == nef="+code=c_iATREQass="sref">CONFTREQstat) {href="drivers/macintosh/via-cuda.c#L30" 58d="L3" c58lass="line" name="L3"> 58 23<583stat            ref="+code=c_iAout_8ass="sref">CONFout_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat], ref="+code=c_iAin_8ass="sref">CONFin_8stat(& ref="+code=c_iAcudass="sref">CONFcudstat[ref="+code=c_iABass="sref">CONFBstat]) &  ~ref="+code=c_iATIPass="sref">CONFTIPstat) href="drivers/macintosh/via-cuda.c#L30" 58d="L4" c58lass="line" name="L4"> 58 24<584stat        stat        ref="+c.c#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAreadottass="sref">CONFreadottstat href="drivers/macintosh/via-cuda.c#L30" 58d="L25" 58lass="line" name="L5"> 58 25<585stat            ref="+code=c_iAreply_ptrass="sref">CONFreply_ptrstat = ref="+code=c_iA.c#L_rbufass="sref">CONF.c#L_rbufstat href="drivers/macintosh/via-cuda.c#L30" 58d="L6" c58lass="line" name="L6"> 58 26<586stat            ref="+code=c_iAreadott_replyass="sref">CONFreadott_replystat = 0 href="drivers/macintosh/via-cuda.c#L30" 58d="L27" 58lass="line" name="L7"> 58 27<587stat        } 
 5  28<588#end                    ref="+c.c#L_ic veass="sref">CONF.c#L_ic vestat = ref="+code=c_iAidleass="sref">CONFidlestat;href="drivers/macintosh/via-cuda.c#L30" 58d="L29" 58lass="line" name="L29">58 29<589#end            ref="+code=c_iAcu#L_ic rt="s="sref">CONFcu#L_ic rtstat() href="drivers/macintosh/via-cuda.c#L30" 59d="L30" 59lass="line" name="L30">59 30<590stat        }href="drivers/macintosh/via-cuda.c#L30" 59d="L31" 59lass="line" name="L31">59 31<591stat        break href="drivers/macintosh/via-cuda.c#L30" 59d="L22" 59lass="line" name="L22">59 22<592
 59 23<593  30<400default:href="drivers/macintosh/via-cuda.c#L31" 59d="L4" c59lass="line" name="L4"> 59 24<594  30<400stat        ref="+cprsh/kass="sref">CONFprsh/kstat(r class="commicrotta>".c#L_ihupt.h
CONF.c#L_ic vestat) href="drivers/macintosh/via-cuda.c#L30" 59d="L25" 59lass="line" name="L5"> 59 25<595  30<400}href="drivers/macintosh/via-cuda.c#L30" 59d="L6" c59lass="line" name="L6"> 59 26<596stat    ref="+code=c_iAspin_unlockass="sref">CONFspin_unlockstat(& ref="+code=c_iA.c#L_lockass="sref">CONF.c#L_lockstat) href="drivers/macintosh/via-cuda.c#L12" 59d="L7" c59lass="line" name="L7"> 59 27<597stat    a  (ref="+code=c_iAcntpleveass="sref">CONF.ntplevestat & &  ref="+code=c_iAreqass="sref">CONFreqstat) {href="drivers/macintosh/via-cuda.c#L30" 59d="L8" c59lass="line" name="L8"> 59 28<598#end        void (*ref="+code=c_iA" id="s="sref">CONF" idstat)(struct ref="+code=c_iAadb_request="s="sref">CONFadb_requeststat *) = nef="+code=c_iAreqass="sref">CONFreqstat-
CONF" idstat href="drivers/macintosh/via-cuda.c#L12" 59d="L29" 5llass="line" name="L9"> 5  29<599stat        ref="+code=c_iAmbass="sref">CONFmbstat() href="drivers/macintosh/via-cuda.c#L30" 60d="L10" 6llass="line" name="L10">6  30<600stat        nef="+code=c_iAreqass="sref">CONFreqstat-
CONF.ntplevestat = 1 href="drivers/macintosh/via-cuda.c#L30" 601="L10" 6llass="line" name="L31">60130<601stat        r class="comment"> * T/* Here, we "coume that a  the request hts l " id membma, thean>
60230<602statr class="comment"> * T         * struct request will survive to settang req-

 60330<603statr class="comment"> * T         *pan>
 39 24<394stat   630<3 604stat        s  (ref="+code=c_iAd id="s="sref">CONF" idstat)href="drivers/macintosh/via-cuda.c#L11" 6c5="L12" 60lass="line" name="L5"> 60530<605stat                (*ref="+code=c_iA" id="s="sref">CONF" idstat)(ref="+code=c_iAreqass="sref">CONFreqstat) href="drivers/macintosh/via-cuda.c#L30" 606="L12" 60lass="line" name="L6"> 60630<606stat    }href="drivers/macintosh/via-cuda.c#L30" 60d="L17" 60lass="line" name="L17">60730<607stat    a  (ref="+code=c_iAibuf_lenass="sref">CONFibuf_lenstat)href="drivers/macintosh/via-cuda.c#L30" 608="L17" 60lass="line" name="L8"> 60830<608#end        ref="+code=c_iAcc#L_irputass="sref">CONF.c#L_irputstat(ref="+code=c_iAibufass="sref">CONFibufstat, ref="+code=c_iAibuf_lenass="sref">CONFibuf_lenstat) href="drivers/macintosh/via-cuda.c#L30" 609="L17" 60lass="line" name="L9"> 60930<609#end    rn fal ref="+code=c_iAIRQ_HANDLEDass="sref">CONFIRQ_HANDLEDstat href="drivers/macintosh/via-cuda.c#L12" 6id="L10" 6class="line" name="L10">6  10<610stat}href="drivers/macintosh/via-cuda.c#L30" 6id="L11" 6llass="line" name="L11">6 130<611stathref="drivers/macintosh/via-cuda.c#L30" 6id="L12" 6class="line" name="L12">6  12<612static volavoidhref="drivers/macintosh/via-cuda.c#L30" 6i3="L12" 6class="line" name="L13">6  13<613statref="+code=c_iAcc#L_irputass="sref">CONF.c#L_irputstat(unsig.ed char *ref="+code=c_iAbufass="sref">CONFbufstat, ih/ ref="+code=c_iAnbass="sref">CONFnbstat)href="drivers/macintosh/via-cuda.c#L30" 6id="L14" 6class="line" name="L14">6  14<614stat{href="drivers/macintosh/via-cuda.c#L30" 6id="L15" 6class="line" name="L15">6  15<615stat    ih/ ref="+code=c_iAiass="sref">CONFistat href="drivers/macintosh/via-cuda.c#L12" 6i6="L12" 6class="line" name="L16">6  16<61>#inchref="drivers/macintosh/via-cuda.c#L30" 6id="L17" 6class="line" name="L17">6  17<617stat    switch (ref="+code=c_iAbufass="sref">CONFbufstat[0]) {href="drivers/macintosh/via-cuda.c#L30" 6id="L18" 6class="line" name="L18">6  18<618#end    caa  ref="+code=c_iAADB_PACKETass="sref">CONFADB_PACKETstat:href="drivers/macintosh/via-cuda.c#L31" 6id="L19" 6class="line" name="L19">6  19<619statlu CONFIG_PPC"XMON#inchref="drivers/macintosh/via-cuda.c#L30" 6id="L20" 6class="line" name="L20">6  20<620stat        s  (ref="+code=c_iAnbass="sref">CONFnbstat == 5 & &  ref="+code=c_iAbufass="sref">CONFbufstat[2] == 0x2c) {href="drivers/macintosh/via-cuda.c#L30" 6id="L11" 6class="line" name="L21">6  21<621stat            extern ih/ ref="+code=c_iAxmon_wants_keyass="sref">CONFxmon_wants_keystat, ref="+code=c_iAxmon_adb_key=c_iass="sref">CONFxmon_adb_key=c_istat href="drivers/macintosh/via-cuda.c#L12" 6id="L12" 6llass="line" name="L12">6  12<622stat        stats  (ref="+code=c_iAxmon_wants_keyass="sref">CONFxmon_wants_keystat) {href="drivers/macintosh/via-cuda.c#L30" 6i3="L12" 6class="line" name="L23">6  23<623stat                ref="+code=c_iAxmon_adb_key=c_iass="sref">CONFxmon_adb_key=c_istat = nef="+code=c_iAbufass="sref">CONFbufstat[3] href="drivers/macintosh/via-cuda.c#L12" 6id="L14" 6class="line" name="L24">6  24<624stat        stat    rn fal href="drivers/macintosh/via-cuda.c#L12" 6id="L15" 6class="line" name="L25">6  25<625stat            }href="drivers/macintosh/via-cuda.c#L30" 6i6="L15" 6class="line" name="L26">6  26<626stat        }href="drivers/macintosh/via-cuda.c#L30" 6dd="L17" 6class="line" name="L27">6  27<627statlf
 * T/* CG_PPC"XMON *pan>
6  28<628#endlu CONFIG_PPC"ADB#inchref="drivers/macintosh/via-cuda.c#L30" 6id="L19" 6class="line" name="L29">6  29<629stat        ref="+code=c_iAadb_irputass="sref">CONFadb_irputstat(ref="+code=c_iAbufass="sref">CONFbufstat+2, ref="+code=c_iAnbass="sref">CONFnbstat-2, ref="+code=c_iAbufass="sref">CONFbufstat[1] &  0x40) href="drivers/macintosh/via-cuda.c#L30" 6id="L30" 6class="line" name="L30">6  30<630statlf
 * T/* CG_PPC"ADB *pan>
6  31<631stat        break href="drivers/macintosh/via-cuda.c#L30" 6id="L12" 63lass="line" name="L22">63 22<632
 6  23<633  30<400default:href="drivers/macintosh/via-cuda.c#L31" 6id="L14" 63lass="line" name="L24">63 24<634  30<400stat        ref="+cprsh/kass="sref">CONFprsh/kstat(r class="commicrotta>"data from .c#L (%d bytes):"an>
CONFnbstat) href="drivers/macintosh/via-cuda.c#L30" 6id="L15" 63lass="line" name="L25">63 25<635stat        for (ref="+code=c_iAiass="sref">CONFistat = 0  ref="+code=c_iAiass="sref">CONFistat &la  ref="+code=c_iAnbass="sref">CONFnbstat; ++ref="+code=c_iAiass="sref">CONFistat)href="drivers/macintosh/via-cuda.c#L30" 63d="L26" 63lass="line" name="L26">63 26<636stat            ref="+code=c_iAprsh/kass="sref">CONFprsh/kstat(r class="commicrotta>" %.2x"an>
CONFbufstat[ref="+code=c_iAiass="sref">CONFistat]) href="drivers/macintosh/via-cuda.c#L30" 63d="L17" 63lass="line" name="L27">63 27<637stat        ref="+code=c_iAprsh/kass="sref">CONFprsh/kstat(r class="commicrotta>"\n"an>
63 28<638#end    }href="drivers/macintosh/via-cuda.c#L30" 63d="L29" 63lass="line" name="L29">63 29<639stat}href="drivers/macintosh/via-cuda.c#L30" 64d="L30" 64lass="line" name="L30">64 30<640stat


The original LXR software by the ref="drivhttp://sourceforge.net/projects/lxr">LXR ent"unitystat, this experi"> *al /macion by ref="drivmailto:lxr@" nux.no">lxr@" nux.nostat.
lxr." nux.no kindly hos/ed by ref="drivhttp://www.redpill-" npro.no">Redpill L npro ASstat, provider of L nux ennsultang thd operations s>rvices since 1995.