linux/drivers/macintosh/therm_pm72.h
<<
>>
Prefs
   1#ifndef __THERM_PMAC_7_2_H__
   2#define __THERM_PMAC_7_2_H__
   3
   4typedef unsigned short fu16;
   5typedef int fs32;
   6typedef short fs16;
   7
   8struct mpu_data
   9{
  10        u8      signature;              /* 0x00 - EEPROM sig. */
  11        u8      bytes_used;             /* 0x01 - Bytes used in eeprom (160 ?) */
  12        u8      size;                   /* 0x02 - EEPROM size (256 ?) */
  13        u8      version;                /* 0x03 - EEPROM version */
  14        u32     data_revision;          /* 0x04 - Dataset revision */
  15        u8      processor_bin_code[3];  /* 0x08 - Processor BIN code */
  16        u8      bin_code_expansion;     /* 0x0b - ??? (padding ?) */
  17        u8      processor_num;          /* 0x0c - Number of CPUs on this MPU */
  18        u8      input_mul_bus_div;      /* 0x0d - Clock input multiplier/bus divider */
  19        u8      reserved1[2];           /* 0x0e - */
  20        u32     input_clk_freq_high;    /* 0x10 - Input clock frequency high */
  21        u8      cpu_nb_target_cycles;   /* 0x14 - ??? */
  22        u8      cpu_statlat;            /* 0x15 - ??? */
  23        u8      cpu_snooplat;           /* 0x16 - ??? */
  24        u8      cpu_snoopacc;           /* 0x17 - ??? */
  25        u8      nb_paamwin;             /* 0x18 - ??? */
  26        u8      nb_statlat;             /* 0x19 - ??? */
  27        u8      nb_snooplat;            /* 0x1a - ??? */
  28        u8      nb_snoopwin;            /* 0x1b - ??? */
  29        u8      api_bus_mode;           /* 0x1c - ??? */
  30        u8      reserved2[3];           /* 0x1d - */
  31        u32     input_clk_freq_low;     /* 0x20 - Input clock frequency low */
  32        u8      processor_card_slot;    /* 0x24 - Processor card slot number */
  33        u8      reserved3[2];           /* 0x25 - */
  34        u8      padjmax;                /* 0x27 - Max power adjustment (Not in OF!) */
  35        u8      ttarget;                /* 0x28 - Target temperature */
  36        u8      tmax;                   /* 0x29 - Max temperature */
u8      /* 0x03 - EEPROM version *
	  >
  v2.6.15.4
  
  
  v2.6.27.27
  
  ttarget;         12an>

  .ption>
  
  u16" class="sref">fu16;

  v2.6.23.8  
  v2.6.16.7;         12an>

 9">  29<3a>        u8      
  v2.6.27.27
  v2.6.16.7  30<4a>        u8      
  v2.6.27.27
  v2.6.16.7  31<4a>        u32     
  v2.6.16.7  32<4a>        u8      u8      /* 0x29 - Max temperature */
  33<4a>        u8      u8      /* 0x29 - Max temperature */
u8      u8      /* 0x1b - ??? */
u8        35<4a>        u8      u8      /* 0x1?? */
u8        36<4a>        u8      u8      /* 0x1b ?? */
u8      /* 0x03 f="drivers/macintsh/therf">uss="sref">cpu_snoalib/mait=_flagles;   u8      4  
  u16" class="sr4f">fu46;
u8      ;           ; 
	  >
  v2.6.27.27
  v2.6.16.7;  Mdiv cl (s aling factorntosh/therm_pm72.h#L35" id="L35" class="line" name="L49">  29<4a>        u8      u8      ;           ; 
	  >
  v2.6.27.27
  v2.6.16.7;  Bdiv cl (offlatntosh/therm_pm72.h#L35" id="L35" class="line" name="L50">  30<5a>        u8      
  v2.6..16.7"
	  >
  v2.6.16.7u8        31<5a>        u32     uss="sref">cpu_snrminn_>u8ake_fa           u8ake_fa ment">/* 0x1?? */
u8        32<5a>        u8      uss="sref">cpu_snrmaxn_>u8ake_fa           u8ake_fa ment">/* 0x1?? */
u8        33<5a>        u8      uss="sref">cpu_snrminn_exhaust_fa           u8         4typedef unsigned short5=u8" 5lass="sref">u8      uss="sref">cpu_snrmaxn_exhaust_fa           u8         5>typedef int u8      processor_part/a>;          u8        36<5a>        u8       class="colot/a>;          /* 0x03 - EEPROM version *
	  >
  v2.6.15.4;          ;ommen */< - lock input multiplier/bus d60fu56;
;          ;ommen */< - lock input multiplier/bus d70  29<5a>        u8      api_bumlbt"era>;          ;ommen */8]">/* 0x1?? */
  30<6a>        u32     
  v2.6.27.27
  31<6a>        u32     checksumef="+code=input_checksume
	  >
  v2.6.27.27
  32<6a>          33<6a>           4typedef unsigned short6=u8" 6lass=lock input multiplier/busDisplay a ="v2. fixed poref"iv cl osh/therm_pm72.h#L34" id="L34" class="line" name="L6>   5typedef int                   fu68ass=lock input multiplier/to Maximum /macintofd"econds to bers/mcritical "tate (aftan>
h/therm_pm72.h#L34" id="L34" class="line" name="L69">  29<6a>          30<7a>        elapses, we force k iiipldiate mrch_2_H">ttah/therm_pm72.h#L34" id="L34" class="line" name="L71">  31<7a>          32<7a>          33<7a>        >>>>>>>>>>>>>>30_pm72.h#L34" id="L34" class="line" name="L7>   4typedef unsigned short7=u8" 7lass=t;">critical_oid=iveropat
  "/sbin/critical_oid=iver"h/thermm_pm72.h#L7" id="L7" class="line" name="L7">>   5typedef int    6typedef short fu78ass=lock input multiplier/to "li f/37roleveop for "li RPMs fans (nersPWMs) will apply "lih/therm_pm72.h#L34" id="L34" class="line" name="L79">  29<7a>          30<8a>          31<8a>          32<8a>          33<8a>        fu88ass=AC_7_2_H__" class="srefRPM_PID_USE_ACTUAL_SPEED  >>>>>>>>0_pm72.h#L34" id="L34" class="line" name="L89">  29<8a>          30<9a>          31<9a>          32<9a>          33<9a>        fu98ass=lock input multiplier/to Note: Xlass= changss=tl/m. We has= someHbitdriverse K2 ive,h/therm_pm72.h#L34" id="L34" class="line" name="L9>   9>{
  10          11          12        >>>verse_pm72.h#L19" id="L19" class="line" name="L103">  13          14          15        0x94_pm72.h#L19" id="L19" class="line" name="L106">  16        >ve98_pm72.h#L19" id="L19" class="line" name="L107">  17          18          19          10          11         registan>C_7_2iait=eh/therm_pm72.h#L34" id="L34" class="line" name="L112">  12          13        0_pm72.h#L34" id="L34" class="line" name="L114">  14        1_pm72.h#L34" id="L34" class="line" name="L115">  15        >>>>>0_pm72.h#L34" id="L34" class="line" name="L116">  16        _INT_TEMPlass="sref">>>>ve27_pm72.h#L34" id="L34" class="line" name="L117">  17          18          19          10        ;  whicht/matbtaiass=fiver"li "drive).h/therm_pm72.h#L34" id="L34" class="line" name="L121">  21<1/a>          12          13          14          15          16          17          28<1/a>          29<1/a>          30<1/a>          21<1/a>          32<1/a>          13        >>0_pm72.h#L34" id="L34" class="line" name="L134">  34<1/a>        >>>>>0x02800000_pm72.h#L34" id="L34" class="line" name="L135">  15        >>>>?) *400000_pm72.h#L34" id="L34" class="line" name="L136">  16        >>>ve00500000_pm72.h#L34" id="L34" class="line" name="L137">  17
>>>>>>>>0e00500000_pm72.h#L34" id="L34" class="line" name="L138">  28<1
  
  u16" class="sr1ef">f138ass=AC_7_2_H__" class="srefBACKSIDE_PID_RACK_G_p  >>>ve0004cccc_pm72.h#L34" id="L34" class="line" name="L139">  29<13a>        >>>>>>>>0e00000000_pm72.h#L34" id="L34" class="line" name="L140">  30<14a>          21<14a>          32<14a>          13        >>>5_pm72.h#L34" id="L34" class="line" name="L144">  14          35<14a>        >100_pm72.h#L34" id="L34" class="line" name="L146">  16          17  28<14  
  u16" class="sr14f">f148ass=AC_7_2_H__" class="srefBACKSIDE_PID_HISTORY_SIZE"drivers/macintBACKSIDE_PID_HISTORY_SIZElass="sref"2_pm72.h#L34" id="L34" class="line" name="L149">  29<14a>          30<15a>        mpu_dataid_paramles;   id_paramlherm_pm72.h#L4" id="L4" class="line" name="L4"151">  21<15a>          32<15a>        u8      uuuuuuuuuuuuuu8        33<15a>        u8      uuuuuuuuuuuuuu8        14typedef unsigned short15=u8"15lass="sref">u8      uuuuuuuuuuuuuu8        35<1>>typedef int u8      uuuuuuuuuuuuuu8        16        u8      uuuuuuuuuuuuuu8        17/* 0x03ef="drivers/macintsclass="sref">uuuuuuuuuuuuuu8        28<15  
  u16" class="sr15f">f156;
uuuuuuuuuuuuuu8        29<15a>        uref"sref">uuuuuuuuuuuuuu8        30<16a>          21<16a>          32<16a>        mpu_dataid_"tatees;   id_"tatelass_pm72.h#L7" id="L7" class="line" name="L7"163">  33<16a>        uref"sref">uuuuuuuuuuuuuu8      ;     35<16>typedef int ulass="sref">mpu_data        16        u8      uuuuuuuuuuuuuu8        17/* 0x03ef="drivers/macintsclass="sref">uuuuuuuuuuuuuu8        28<16  
  u16" class="sr16f">f168ass="sref">uref"sref">uuuuuuuuuuuuuu8        29<16a>        u8      uuuuuuuuuuuuuu8        30<17a>        uref"sref">uuuuuuuuuuuuuu8        21<17a>        uref"sref">uuuuuuuuuuuuuu8        32<17a>          33<17a>           4typedef unsigned short17=u8"17lass=lock input multiplier/buh/therm_pm72.h#L17" id="L17" class="line" name="L175">  35<17>typedef int   16typedef short   17        f178ass=AC_7_2_H__" class="srefDRIVES_FAN_RPM_INDEX  uuuuu1_pm72.h#L34" id="L34" class="line" name="L179">  29<17a>        uuuuuuuuuuu?) *e00000_pm72.h#L34" id="L34" class="line" name="L180">  30<18a>        uuuuuuuuuuu?) 0500000_pm72.h#L34" id="L34" class="line" name="L181">  31<18a>        uuuuuuuuuuu?) 0000000_pm72.h#L34" id="L34" class="line" name="L182">  32<18a>        uu?) 0280000_pm72.h#L34" id="L34" class="line" name="L183">  33<18a>        uuuuuu5_pm72.h#L34" id="L34" class="line" name="L18>   4typedef unsigned short18=u8"184ass=AC_7_2_H__" class="srefDRIVES_PID_OUTPUT_MAX  uuuu4000_pm72.h#L34" id="L34" class="line" name="L185">  35<18>typedef int uuuu300_pm72.h#L34" id="L34" class="line" name="L186">  16typedef short uu2_pm72.h#L34" id="L34" class="line" name="L18>   7
   8>struct f188ass=lass="sref">mpu_dataid_"tatees;   id_"tateherm_pm72.h#L8" id="L8" class="line" name="L8"189">  29<18a>          30<19a>        uref"sref">uuuuuuuuuuuuuu8      ;     31<19a>        ulass="sref">mpu_data        32<19a>        u8      uuuuuuuuuuuuuu8        33<19a>        u8      uuuuuuuuuuuuuu8         4typedef unsigned short19=u8"194ass="sref">uref"sref">uuuuuuuuuuuuuu8         5typedef int u8      uuuuuuuuuuuuuu8         6typedef short uref"sref">uuuuuuuuuuuuuu8         7
uref"sref">uuuuuuuuuuuuuu8         8struct f198ass=}m_pm72.h#L7" id="L7" class="line" name="L7"19>   9>{
  10<2aa>        u2_pm72.h#L34" id="L34" class="line" name="L201">  11<20a>        uuuuuu2_pm72.h#L34" id="L34" class="line" name="L202">  11<20a>        uuuu40
  13<20a>          14<20a>          14<20>typedef int   16<20a>          17<20a>          18<20a>        uuuuuuuuuuuuu0_pm72.h#L34" id="L34" class="line" name="L209">  19<20a>        uuuuuuuuuuuuu0_pm72.h#L34" id="L34" class="line" name="L210">  10<2/a>        uuuuuuuuuuuuu0x06553600_pm72.h#L34" id="L34" class="line" name="L211">  11<2aa>        uuuu3276800_pm72.h#L34" id="L34" class="line" name="L212">  11<2/a>        uuuuuuuu1_pm72.h#L34" id="L34" class="line" name="L213">  13<2/a>        uuuuuu14000_pm72.h#L34" id="L34" class="line" name="L214">  14<2/a>        uuuuuu4000_pm72.h#L34" id="L34" class="line" name="L215">  14<2/a>        uuuu20_pm72.h#L34" id="L34" class="line" name="L216">  16<2/a>          17<2/a>        mpu_dataid_"tatees;   id_"tateherm_pm72.h#L4" id="L4" class="line" name="L4"218">  18<2/a>          19<2/a>        uref"sref">uuuuuuuuuuuuuu8      ;     10<2/a>        ulass="sref">mpu_data        21<2/a>        u32     uuuuuuuuuuuuuu8        12<2aa>        u8      uuuuuuuuuuuuuu8        13<2/a>        uref"sref">uuuuuuuuuuuuuu8        14<2/a>        u8      uuuuuuuuuuuuuu8        15<2/a>        uref"sref">uuuuuuuuuuuuuu8        16<2/a>        uref"sref">uuuuuuuuuuuuuu8        17<2/a>          28<2/a>          19<2/a>          30<2/a>          21<2/a>          32<2/a>          13<2aa>        uuuuuuuuuuuu0_pm72.h#L34" id="L34" class="line" name="L234">  34<2/a>        uuuuuuuuuuuu0_pm72.h#L34" id="L34" class="line" name="L235">  15<2/a>        uuuuuuuuuuuu0x00100000_pm72.h#L34" id="L34" class="line" name="L236">  16<2/a>        uuu3200000_pm72.h#L34" id="L34" class="line" name="L237">  17<2_sta(emperature */
uuuuuuu1_pm72.h#L34" id="L34" class="line" name="L238">  28<2
  
  u16" class="sr2ef">f238ass=AC_7_2_H__" class="srefSLOTS_PID_OUTPUT_MAX  uuuuu100_pm72.h#L34" id="L34" class="line" name="L239">  19<23a>        uuuuu20_pm72.h#L34" id="L34" class="line" name="L240">  30<24a>        uuu20_pm72.h#L34" id="L34" class="line" name="L241">  21<24a>          32<24a>        mpu_dataid_"tatees;   id_"tatelass_pm72.h#L7" id="L7" class="line" name="L7"243">  13<24a>          14<2aa>        uref"sref">uuuuuuuuuuuuuu8      ;     35<24a>        ulass="sref">mpu_data        16<24a>        u8      uuuuuuuuuuuuuu8        17<24sta(emperature *//* 0x03ef="drivers/macintsclass="sref">uuuuuuuuuuuuuu8        28<24  
  u16" class="sr24f">f248ass="sref">uref"sref">uuuuuuuuuuuuuu8        29<24a>        u8      uuuuuuuuuuuuuu8        30<25a>        uref"sref">uuuuuuuuuuuuuu8        21<25a>        uref"sref">uuuuuuuuuuuuuu8        32<25a>          33<25a>          14<25>typedef unsigned short25=u8"254ass=_pm72.h#L4" id="L4" class="line" name="L4"255">  35<2>>typedef int   16<25a>          17<25sta(emperature */  28<25  
  u16" class="sr25f">f258ass=AC_7_2_H__" class="srefCPUA_INTAKE_FAN_RPM_DEFAULT_ID    29<25a>          30<26a>          21<26a>          32<26a>          33<26a>        3_pm72.h#L8" id="L8" class="line" name="L8"26>   4typedef unsigned short26=u8"264ass=AC_7_2_H__" class="srefCPUA_EXHAUST_FAN_RPM_INDEX    35<26>typedef int 5_pm72.h#L34" id="L34" class="line" name="L266">  16<2aa>          17<26sta(emperature */  28<26  
  u16" class="sr26f">f268ass=AC_7_2_H__" class="srefCPU_INTAKE_SCALE"drivers/macintCPU_INTAKE_SCALEass="sref">uuuuuuuuu?) 000f852_pm72.h#L34" id="L34" class="line" name="L269">  29<26a>        uuuu2_pm72.h#L34" id="L34" class="line" name="L270">  30<27a>        uuu10_pm72.h#L34" id="L34" class="line" name="L271">  21<27a>        uuuuuuuuu1_pm72.h#L34" id="L34" class="line" name="L272">  32<27a>        uuuuuuuuu90_pm72.h#L34" id="L34" class="line" name="L273">  33<27a>           4typedef unsigned short27=u8"274ass=AC_7_2_H__" class="srefCPUA_PUMP_RPM_INDEX  uuuuuu7_pm72.h#L34" id="L34" class="line" name="L275">  35<27>typedef int uuuuuu8_pm72.h#L19" id="L19" class="line" name="L276">  16<27>typedef short uuuuuu3200_pm72.h#L19" id="L19" class="line" name="L277">  17<2aa>        uuuuuu1250_pm72.h#L19" id="L19" class="line" name="L278">  28<27  
  u16" class="sr27f">f278ass=_pm72.h#L7" id="L7" class="line" name="L7"279">  29<27a>          30<28a>        uuuuu9_pm72.h#L34" id="L34" class="line" name="L281">  21<28a>        uuuuu10_pm72.h#L19" id="L19" class="line" name="L282">  32<28a>        uuuuu11_pm72.h#L34" id="L34" class="line" name="L283">  33<28a>        uuuuu12_pm72.h#L34" id="L34" class="line" name="L28>   4typedef unsigned short28=u8"284ass=AC_7_2_H__" class="srefCPU_B2_FAN_RPM_INDEX  uuuuu13_pm72.h#L8" id="L8" class="line" name="L8"285">  35<28>typedef int uuuuu14_pm72.h#L19" id="L19" class="line" name="L286">  16<28>typedef short    7
   8>struct f288ass=lass="sref">mpu_dataid_"tatees;   id_"tateherm_pm72.h#L8" id="L8" class="line" name="L8"289">  29<28a>          30<29a>        uref"sref">uuuuuuuuuuuuuu8        31<29a>        ulass="sref">mpu_data        32<29a>        ulass="sref">mpu_datauuref">mpu_data  33<29a>        uref"sref">uuuuuuuuuuuuuu8         4typedef unsigned short29=u8"29lass="sref">u8      uuuuuuuuuuuuuu8         5typedef int uref"sref">uuuuuuuuuuuuuu8        16<29>typedef short u8      uuuuuuuuuuuuuu8         7
/* 0x03ef="drivers/macintsclass="sref">uuuuuuuuuuuuuu8         8struct f298ass="sref">uref"sref">uuuuuuuuuuuuuu8        29<2>>{
uref"sref">uuuuuuuuuuuuuu8        10<3aa>        uref"sref">uuuuuuuuuuuuuu8        11<30a>        uref"sref">uuuuuuuuuuuuuu8        11<30a>        u8      uuuuuuuuuuuuuu8      ;     11<30a>        u8      uuuuuuuuuuuuuu8        11<30>typedef unsigned short304u8"30lass="sref">u8      uuuuuuuuuuuuuu8        14<30>typedef int u8      uuuuuuuuuuuuuu8        14<30>typedef short uref"sref">uuuuuuuuuuuuuu8        17<30a>        /* 0x03u8          uuuuuuuuuuuuuucomment">/* 0x03adc_config            17<30>struct ;
uuuuuuuuuuuuuu8        17<30>{
u8      uuuuuuuuuuuuuu8        10<3/a>          11<3aa>          11<3/a>          13<3/a>        u10_pm72.h#L19" id="L19" class="line" name="L314">  14<3/a>          14<3/a>          16<3/a>          17<3/a>          18<3/a>          19<3/a>        u8        10<3/a>        u8        11<3/a>        u32       11<3aa>        u8        13<3/a>          14<3/a>          15<3/a>          16<3/a>        
  17<3/a>        


The original LXR software by "li pm72.h#L3http://sourceforge.net/projects/lxr >LXR