2
1

linux-libc-headers-2.6.8-cleanup.patch 275 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153
  1. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/addrspace.h linux-libc-headers-2.6.8.0/include/asm-mips/addrspace.h
  2. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/addrspace.h 2004-03-28 07:51:50.000000000 -0600
  3. +++ linux-libc-headers-2.6.8.0/include/asm-mips/addrspace.h 2004-08-26 05:53:12.000000000 -0500
  4. @@ -10,7 +10,23 @@
  5. #ifndef _ASM_ADDRSPACE_H
  6. #define _ASM_ADDRSPACE_H
  7. -#include <spaces.h>
  8. +/**********************************************************************/
  9. +/* Include the common bits for #include <spaces.h> */
  10. +#ifndef __mips64
  11. +
  12. +#define CAC_BASE 0x80000000
  13. +#define IO_BASE 0xa0000000
  14. +#define UNCAC_BASE 0xa0000000
  15. +#define MAP_BASE 0xc0000000
  16. +
  17. +/*
  18. + * This handles the memory map.
  19. + * We handle pages at KSEG0 for kernels with 32 bit address space.
  20. + */
  21. +#define PAGE_OFFSET 0x80000000UL
  22. +
  23. +#endif /* ndef __mips64 */
  24. +/**********************************************************************/
  25. /*
  26. * Configure language
  27. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/asmmacro.h linux-libc-headers-2.6.8.0/include/asm-mips/asmmacro.h
  28. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/asmmacro.h 2004-08-18 13:15:41.000000000 -0500
  29. +++ linux-libc-headers-2.6.8.0/include/asm-mips/asmmacro.h 2004-08-26 05:14:41.000000000 -0500
  30. @@ -9,10 +9,10 @@
  31. #define _ASM_ASMMACRO_H
  32. -#ifdef CONFIG_MIPS32
  33. +#ifndef __mips64
  34. #include <asm/asmmacro-32.h>
  35. #endif
  36. -#ifdef CONFIG_MIPS64
  37. +#ifdef __mips64
  38. #include <asm/asmmacro-64.h>
  39. #endif
  40. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/checksum.h linux-libc-headers-2.6.8.0/include/asm-mips/checksum.h
  41. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/checksum.h 2004-06-23 16:52:45.000000000 -0500
  42. +++ linux-libc-headers-2.6.8.0/include/asm-mips/checksum.h 2004-08-26 05:14:41.000000000 -0500
  43. @@ -125,7 +125,7 @@
  44. {
  45. __asm__(
  46. ".set\tnoat\t\t\t# csum_tcpudp_nofold\n\t"
  47. -#ifdef CONFIG_MIPS32
  48. +#ifndef __mips64
  49. "addu\t%0, %2\n\t"
  50. "sltu\t$1, %0, %2\n\t"
  51. "addu\t%0, $1\n\t"
  52. @@ -138,7 +138,7 @@
  53. "sltu\t$1, %0, %4\n\t"
  54. "addu\t%0, $1\n\t"
  55. #endif
  56. -#ifdef CONFIG_MIPS64
  57. +#ifdef __mips64
  58. "daddu\t%0, %2\n\t"
  59. "daddu\t%0, %3\n\t"
  60. "daddu\t%0, %4\n\t"
  61. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/compat.h linux-libc-headers-2.6.8.0/include/asm-mips/compat.h
  62. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/compat.h 2003-12-15 12:47:02.000000000 -0600
  63. +++ linux-libc-headers-2.6.8.0/include/asm-mips/compat.h 2004-08-26 05:23:05.000000000 -0500
  64. @@ -8,64 +8,64 @@
  65. #define COMPAT_USER_HZ 100
  66. -typedef u32 compat_size_t;
  67. -typedef s32 compat_ssize_t;
  68. -typedef s32 compat_time_t;
  69. -typedef s32 compat_clock_t;
  70. -typedef s32 compat_suseconds_t;
  71. -
  72. -typedef s32 compat_pid_t;
  73. -typedef s32 compat_uid_t;
  74. -typedef s32 compat_gid_t;
  75. -typedef u32 compat_mode_t;
  76. -typedef u32 compat_ino_t;
  77. -typedef u32 compat_dev_t;
  78. -typedef s32 compat_off_t;
  79. -typedef s64 compat_loff_t;
  80. -typedef u32 compat_nlink_t;
  81. -typedef s32 compat_ipc_pid_t;
  82. -typedef s32 compat_daddr_t;
  83. -typedef s32 compat_caddr_t;
  84. +typedef __u32 compat_size_t;
  85. +typedef __s32 compat_ssize_t;
  86. +typedef __s32 compat_time_t;
  87. +typedef __s32 compat_clock_t;
  88. +typedef __s32 compat_suseconds_t;
  89. +
  90. +typedef __s32 compat_pid_t;
  91. +typedef __s32 compat_uid_t;
  92. +typedef __s32 compat_gid_t;
  93. +typedef __u32 compat_mode_t;
  94. +typedef __u32 compat_ino_t;
  95. +typedef __u32 compat_dev_t;
  96. +typedef __s32 compat_off_t;
  97. +typedef __s64 compat_loff_t;
  98. +typedef __u32 compat_nlink_t;
  99. +typedef __s32 compat_ipc_pid_t;
  100. +typedef __s32 compat_daddr_t;
  101. +typedef __s32 compat_caddr_t;
  102. typedef struct {
  103. - s32 val[2];
  104. + __s32 val[2];
  105. } compat_fsid_t;
  106. -typedef s32 compat_int_t;
  107. -typedef s32 compat_long_t;
  108. -typedef u32 compat_uint_t;
  109. -typedef u32 compat_ulong_t;
  110. +typedef __s32 compat_int_t;
  111. +typedef __s32 compat_long_t;
  112. +typedef __u32 compat_uint_t;
  113. +typedef __u32 compat_ulong_t;
  114. struct compat_timespec {
  115. compat_time_t tv_sec;
  116. - s32 tv_nsec;
  117. + __s32 tv_nsec;
  118. };
  119. struct compat_timeval {
  120. compat_time_t tv_sec;
  121. - s32 tv_usec;
  122. + __s32 tv_usec;
  123. };
  124. struct compat_stat {
  125. compat_dev_t st_dev;
  126. - s32 st_pad1[3];
  127. + __s32 st_pad1[3];
  128. compat_ino_t st_ino;
  129. compat_mode_t st_mode;
  130. compat_nlink_t st_nlink;
  131. compat_uid_t st_uid;
  132. compat_gid_t st_gid;
  133. compat_dev_t st_rdev;
  134. - s32 st_pad2[2];
  135. + __s32 st_pad2[2];
  136. compat_off_t st_size;
  137. - s32 st_pad3;
  138. + __s32 st_pad3;
  139. compat_time_t st_atime;
  140. - s32 st_atime_nsec;
  141. + __s32 st_atime_nsec;
  142. compat_time_t st_mtime;
  143. - s32 st_mtime_nsec;
  144. + __s32 st_mtime_nsec;
  145. compat_time_t st_ctime;
  146. - s32 st_ctime_nsec;
  147. - s32 st_blksize;
  148. - s32 st_blocks;
  149. - s32 st_pad4[14];
  150. + __s32 st_ctime_nsec;
  151. + __s32 st_blksize;
  152. + __s32 st_blocks;
  153. + __s32 st_pad4[14];
  154. };
  155. struct compat_flock {
  156. @@ -73,10 +73,10 @@
  157. short l_whence;
  158. compat_off_t l_start;
  159. compat_off_t l_len;
  160. - s32 l_sysid;
  161. + __s32 l_sysid;
  162. compat_pid_t l_pid;
  163. short __unused;
  164. - s32 pad[4];
  165. + __s32 pad[4];
  166. };
  167. #define F_GETLK64 33
  168. @@ -107,12 +107,12 @@
  169. #define COMPAT_RLIM_INFINITY 0x7fffffffUL
  170. -typedef u32 compat_old_sigset_t; /* at least 32 bits */
  171. +typedef __u32 compat_old_sigset_t; /* at least 32 bits */
  172. #define _COMPAT_NSIG 128 /* Don't ask !$@#% ... */
  173. #define _COMPAT_NSIG_BPW 32
  174. -typedef u32 compat_sigset_word;
  175. +typedef __u32 compat_sigset_word;
  176. #define COMPAT_OFF_T_MAX 0x7fffffff
  177. #define COMPAT_LOFF_T_MAX 0x7fffffffffffffffL
  178. @@ -123,7 +123,7 @@
  179. * as pointers because the syscall entry code will have
  180. * appropriately comverted them already.
  181. */
  182. -typedef u32 compat_uptr_t;
  183. +typedef __u32 compat_uptr_t;
  184. static inline void *compat_ptr(compat_uptr_t uptr)
  185. {
  186. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/ddb5xxx/ddb5074.h linux-libc-headers-2.6.8.0/include/asm-mips/ddb5xxx/ddb5074.h
  187. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/ddb5xxx/ddb5074.h 2003-12-15 12:47:03.000000000 -0600
  188. +++ linux-libc-headers-2.6.8.0/include/asm-mips/ddb5xxx/ddb5074.h 2004-08-26 13:21:48.000000000 -0500
  189. @@ -34,5 +34,5 @@
  190. extern void ddb5074_led_d2(int on);
  191. extern void ddb5074_led_d3(int on);
  192. -extern void nile4_irq_setup(u32 base);
  193. +extern void nile4_irq_setup(__u32 base);
  194. #endif
  195. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/ddb5xxx/ddb5476.h linux-libc-headers-2.6.8.0/include/asm-mips/ddb5xxx/ddb5476.h
  196. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/ddb5xxx/ddb5476.h 2003-12-15 12:47:03.000000000 -0600
  197. +++ linux-libc-headers-2.6.8.0/include/asm-mips/ddb5xxx/ddb5476.h 2004-08-26 05:24:06.000000000 -0500
  198. @@ -145,13 +145,13 @@
  199. extern void nile4_enable_irq(int nile4_irq);
  200. extern void nile4_disable_irq(int nile4_irq);
  201. extern void nile4_disable_irq_all(void);
  202. -extern u16 nile4_get_irq_stat(int cpu_irq);
  203. +extern __u16 nile4_get_irq_stat(int cpu_irq);
  204. extern void nile4_enable_irq_output(int cpu_irq);
  205. extern void nile4_disable_irq_output(int cpu_irq);
  206. extern void nile4_set_pci_irq_polarity(int pci_irq, int high);
  207. extern void nile4_set_pci_irq_level_or_edge(int pci_irq, int level);
  208. extern void nile4_clear_irq(int nile4_irq);
  209. -extern void nile4_clear_irq_mask(u32 mask);
  210. -extern u8 nile4_i8259_iack(void);
  211. +extern void nile4_clear_irq_mask(__u32 mask);
  212. +extern __u8 nile4_i8259_iack(void);
  213. extern void nile4_dump_irq_status(void); /* Debug */
  214. #endif /* !__ASSEMBLY__ */
  215. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/ddb5xxx/ddb5xxx.h linux-libc-headers-2.6.8.0/include/asm-mips/ddb5xxx/ddb5xxx.h
  216. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/ddb5xxx/ddb5xxx.h 2004-01-17 17:03:47.000000000 -0600
  217. +++ linux-libc-headers-2.6.8.0/include/asm-mips/ddb5xxx/ddb5xxx.h 2004-08-26 05:24:01.000000000 -0500
  218. @@ -177,46 +177,46 @@
  219. * interrupt load
  220. */
  221. #ifndef CONFIG_DDB5074
  222. - volatile u32 *p = (volatile u32 *)0xbfc00000;
  223. + volatile __u32 *p = (volatile __u32 *)0xbfc00000;
  224. (void)(*p);
  225. #endif
  226. }
  227. -static inline void ddb_out32(u32 offset, u32 val)
  228. +static inline void ddb_out32(__u32 offset, __u32 val)
  229. {
  230. - *(volatile u32 *)(DDB_BASE+offset) = val;
  231. + *(volatile __u32 *)(DDB_BASE+offset) = val;
  232. ddb_sync();
  233. }
  234. -static inline u32 ddb_in32(u32 offset)
  235. +static inline __u32 ddb_in32(__u32 offset)
  236. {
  237. - u32 val = *(volatile u32 *)(DDB_BASE+offset);
  238. + __u32 val = *(volatile __u32 *)(DDB_BASE+offset);
  239. ddb_sync();
  240. return val;
  241. }
  242. -static inline void ddb_out16(u32 offset, u16 val)
  243. +static inline void ddb_out16(__u32 offset, __u16 val)
  244. {
  245. - *(volatile u16 *)(DDB_BASE+offset) = val;
  246. + *(volatile __u16 *)(DDB_BASE+offset) = val;
  247. ddb_sync();
  248. }
  249. -static inline u16 ddb_in16(u32 offset)
  250. +static inline __u16 ddb_in16(__u32 offset)
  251. {
  252. - u16 val = *(volatile u16 *)(DDB_BASE+offset);
  253. + __u16 val = *(volatile __u16 *)(DDB_BASE+offset);
  254. ddb_sync();
  255. return val;
  256. }
  257. -static inline void ddb_out8(u32 offset, u8 val)
  258. +static inline void ddb_out8(__u32 offset, __u8 val)
  259. {
  260. - *(volatile u8 *)(DDB_BASE+offset) = val;
  261. + *(volatile __u8 *)(DDB_BASE+offset) = val;
  262. ddb_sync();
  263. }
  264. -static inline u8 ddb_in8(u32 offset)
  265. +static inline __u8 ddb_in8(__u32 offset)
  266. {
  267. - u8 val = *(volatile u8 *)(DDB_BASE+offset);
  268. + __u8 val = *(volatile __u8 *)(DDB_BASE+offset);
  269. ddb_sync();
  270. return val;
  271. }
  272. @@ -226,10 +226,10 @@
  273. * Physical Device Address Registers
  274. */
  275. -extern u32
  276. -ddb_calc_pdar(u32 phys, u32 size, int width, int on_memory_bus, int pci_visible);
  277. +extern __u32
  278. +ddb_calc_pdar(__u32 phys, __u32 size, int width, int on_memory_bus, int pci_visible);
  279. extern void
  280. -ddb_set_pdar(u32 pdar, u32 phys, u32 size, int width,
  281. +ddb_set_pdar(__u32 pdar, __u32 phys, __u32 size, int width,
  282. int on_memory_bus, int pci_visible);
  283. /*
  284. @@ -248,7 +248,7 @@
  285. #define DDB_PCI_ACCESS_32 0x10 /* for pci init0/1 regs */
  286. -extern void ddb_set_pmr(u32 pmr, u32 type, u32 addr, u32 options);
  287. +extern void ddb_set_pmr(__u32 pmr, __u32 type, __u32 addr, __u32 options);
  288. /*
  289. * we need to reset pci bus when we start up and shutdown
  290. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/dec/ioasic.h linux-libc-headers-2.6.8.0/include/asm-mips/dec/ioasic.h
  291. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/dec/ioasic.h 2004-01-17 17:03:47.000000000 -0600
  292. +++ linux-libc-headers-2.6.8.0/include/asm-mips/dec/ioasic.h 2004-08-26 05:25:44.000000000 -0500
  293. @@ -18,14 +18,14 @@
  294. extern spinlock_t ioasic_ssr_lock;
  295. -extern volatile u32 *ioasic_base;
  296. +extern volatile __u32 *ioasic_base;
  297. -static inline void ioasic_write(unsigned int reg, u32 v)
  298. +static inline void ioasic_write(unsigned int reg, __u32 v)
  299. {
  300. ioasic_base[reg / 4] = v;
  301. }
  302. -static inline u32 ioasic_read(unsigned int reg)
  303. +static inline __u32 ioasic_read(unsigned int reg)
  304. {
  305. return ioasic_base[reg / 4];
  306. }
  307. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/dec/kn02.h linux-libc-headers-2.6.8.0/include/asm-mips/dec/kn02.h
  308. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/dec/kn02.h 2004-01-17 17:03:47.000000000 -0600
  309. +++ linux-libc-headers-2.6.8.0/include/asm-mips/dec/kn02.h 2004-08-26 05:25:47.000000000 -0500
  310. @@ -97,7 +97,7 @@
  311. #ifndef __ASSEMBLY__
  312. -extern u32 cached_kn02_csr;
  313. +extern __u32 cached_kn02_csr;
  314. extern spinlock_t kn02_lock;
  315. extern void init_kn02_irqs(int base);
  316. #endif
  317. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/elf.h linux-libc-headers-2.6.8.0/include/asm-mips/elf.h
  318. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/elf.h 2004-03-28 07:51:51.000000000 -0600
  319. +++ linux-libc-headers-2.6.8.0/include/asm-mips/elf.h 2004-08-26 05:17:25.000000000 -0500
  320. @@ -122,7 +122,7 @@
  321. typedef double elf_fpreg_t;
  322. typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
  323. -#ifdef CONFIG_MIPS32
  324. +#ifndef __mips64
  325. /*
  326. * This is used to ensure we don't load something for the wrong architecture.
  327. @@ -150,9 +150,9 @@
  328. */
  329. #define ELF_CLASS ELFCLASS32
  330. -#endif /* CONFIG_MIPS32 */
  331. +#endif /* ndef __mips64 */
  332. -#ifdef CONFIG_MIPS64
  333. +#ifdef __mips64
  334. /*
  335. * This is used to ensure we don't load something for the wrong architecture.
  336. */
  337. @@ -174,7 +174,7 @@
  338. */
  339. #define ELF_CLASS ELFCLASS64
  340. -#endif /* CONFIG_MIPS64 */
  341. +#endif /* __mips64 */
  342. /*
  343. * These are used to set parameters in the core dumps.
  344. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/galileo-boards/ev96100.h linux-libc-headers-2.6.8.0/include/asm-mips/galileo-boards/ev96100.h
  345. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/galileo-boards/ev96100.h 2004-03-28 07:51:53.000000000 -0600
  346. +++ linux-libc-headers-2.6.8.0/include/asm-mips/galileo-boards/ev96100.h 2004-08-26 05:23:12.000000000 -0500
  347. @@ -46,9 +46,9 @@
  348. * bytes when running bigendian.
  349. */
  350. #define __GT_READ(ofs) \
  351. - (*(volatile u32 *)(GT64120_BASE+(ofs)))
  352. + (*(volatile __u32 *)(GT64120_BASE+(ofs)))
  353. #define __GT_WRITE(ofs, data) \
  354. - do { *(volatile u32 *)(GT64120_BASE+(ofs)) = (data); } while (0)
  355. + do { *(volatile __u32 *)(GT64120_BASE+(ofs)) = (data); } while (0)
  356. #define GT_READ(ofs) le32_to_cpu(__GT_READ(ofs))
  357. #define GT_WRITE(ofs, data) __GT_WRITE(ofs, cpu_to_le32(data))
  358. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/galileo-boards/gt96100.h linux-libc-headers-2.6.8.0/include/asm-mips/galileo-boards/gt96100.h
  359. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/galileo-boards/gt96100.h 2004-03-28 07:51:53.000000000 -0600
  360. +++ linux-libc-headers-2.6.8.0/include/asm-mips/galileo-boards/gt96100.h 2004-08-26 05:23:17.000000000 -0500
  361. @@ -27,9 +27,9 @@
  362. #define MIPS_GT96100_BASE (KSEG1ADDR(0x14000000))
  363. #define GT96100_WRITE(ofs, data) \
  364. - *(volatile u32 *)(MIPS_GT96100_BASE+ofs) = cpu_to_le32(data)
  365. + *(volatile __u32 *)(MIPS_GT96100_BASE+ofs) = cpu_to_le32(data)
  366. #define GT96100_READ(ofs) \
  367. - le32_to_cpu(*(volatile u32 *)(MIPS_GT96100_BASE+ofs))
  368. + le32_to_cpu(*(volatile __u32 *)(MIPS_GT96100_BASE+ofs))
  369. #define GT96100_ETH_IO_SIZE 0x4000
  370. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/gt64120.h linux-libc-headers-2.6.8.0/include/asm-mips/gt64120.h
  371. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/gt64120.h 2004-03-28 07:51:51.000000000 -0600
  372. +++ linux-libc-headers-2.6.8.0/include/asm-mips/gt64120.h 2004-08-26 05:22:36.000000000 -0500
  373. @@ -420,9 +420,9 @@
  374. * bytes when running bigendian. We also provide non-swapping versions.
  375. */
  376. #define __GT_READ(ofs) \
  377. - (*(volatile u32 *)(GT64120_BASE+(ofs)))
  378. + (*(volatile __u32 *)(GT64120_BASE+(ofs)))
  379. #define __GT_WRITE(ofs, data) \
  380. - do { *(volatile u32 *)(GT64120_BASE+(ofs)) = (data); } while (0)
  381. + do { *(volatile __u32 *)(GT64120_BASE+(ofs)) = (data); } while (0)
  382. #define GT_READ(ofs) le32_to_cpu(__GT_READ(ofs))
  383. #define GT_WRITE(ofs, data) __GT_WRITE(ofs, cpu_to_le32(data))
  384. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/io.h linux-libc-headers-2.6.8.0/include/asm-mips/io.h
  385. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/io.h 2004-03-28 07:51:51.000000000 -0600
  386. +++ linux-libc-headers-2.6.8.0/include/asm-mips/io.h 2004-08-26 05:24:16.000000000 -0500
  387. @@ -173,14 +173,14 @@
  388. unsigned long flags)
  389. {
  390. if (cpu_has_64bit_addresses) {
  391. - u64 base = UNCAC_BASE;
  392. + __u64 base = UNCAC_BASE;
  393. /*
  394. * R10000 supports a 2 bit uncached attribute therefore
  395. * UNCAC_BASE may not equal IO_BASE.
  396. */
  397. if (flags == _CACHE_UNCACHED)
  398. - base = (u64) IO_BASE;
  399. + base = (__u64) IO_BASE;
  400. return (void *) (unsigned long) (base + offset);
  401. }
  402. @@ -245,10 +245,10 @@
  403. #define __raw_readb(addr) (*(volatile unsigned char *)(addr))
  404. #define __raw_readw(addr) (*(volatile unsigned short *)(addr))
  405. #define __raw_readl(addr) (*(volatile unsigned int *)(addr))
  406. -#ifdef CONFIG_MIPS32
  407. +#ifndef __mips64
  408. #define ____raw_readq(addr) \
  409. ({ \
  410. - u64 __res; \
  411. + __u64 __res; \
  412. \
  413. __asm__ __volatile__ ( \
  414. " .set mips3 # ____raw_readq \n" \
  415. @@ -263,7 +263,7 @@
  416. #define __raw_readq(addr) \
  417. ({ \
  418. unsigned long __flags; \
  419. - u64 __res; \
  420. + __u64 __res; \
  421. \
  422. local_irq_save(__flags); \
  423. __res = ____raw_readq(addr); \
  424. @@ -271,7 +271,7 @@
  425. __res; \
  426. })
  427. #endif
  428. -#ifdef CONFIG_MIPS64
  429. +#ifdef __mips64
  430. #define ____raw_readq(addr) (*(volatile unsigned long *)(addr))
  431. #define __raw_readq(addr) ____raw_readq(addr)
  432. #endif
  433. @@ -288,10 +288,10 @@
  434. #define __raw_writeb(b,addr) ((*(volatile unsigned char *)(addr)) = (b))
  435. #define __raw_writew(w,addr) ((*(volatile unsigned short *)(addr)) = (w))
  436. #define __raw_writel(l,addr) ((*(volatile unsigned int *)(addr)) = (l))
  437. -#ifdef CONFIG_MIPS32
  438. +#ifndef __mips64
  439. #define ____raw_writeq(val,addr) \
  440. ({ \
  441. - u64 __tmp; \
  442. + __u64 __tmp; \
  443. \
  444. __asm__ __volatile__ ( \
  445. " .set mips3 \n" \
  446. @@ -313,7 +313,7 @@
  447. local_irq_restore(__flags); \
  448. })
  449. #endif
  450. -#ifdef CONFIG_MIPS64
  451. +#ifdef __mips64
  452. #define ____raw_writeq(q,addr) ((*(volatile unsigned long *)(addr)) = (q))
  453. #define __raw_writeq(q,addr) ____raw_writeq(q, addr)
  454. #endif
  455. @@ -400,28 +400,28 @@
  456. {
  457. port = __swizzle_addr_b(port);
  458. - *(volatile u8 *)(mips_io_port_base + port) = __ioswab8(val);
  459. + *(volatile __u8 *)(mips_io_port_base + port) = __ioswab8(val);
  460. }
  461. static inline void __outw(unsigned short val, unsigned long port)
  462. {
  463. port = __swizzle_addr_w(port);
  464. - *(volatile u16 *)(mips_io_port_base + port) = __ioswab16(val);
  465. + *(volatile __u16 *)(mips_io_port_base + port) = __ioswab16(val);
  466. }
  467. static inline void __outl(unsigned int val, unsigned long port)
  468. {
  469. port = __swizzle_addr_l(port);
  470. - *(volatile u32 *)(mips_io_port_base + port) = __ioswab32(val);
  471. + *(volatile __u32 *)(mips_io_port_base + port) = __ioswab32(val);
  472. }
  473. static inline void __outb_p(unsigned char val, unsigned long port)
  474. {
  475. port = __swizzle_addr_b(port);
  476. - *(volatile u8 *)(mips_io_port_base + port) = __ioswab8(val);
  477. + *(volatile __u8 *)(mips_io_port_base + port) = __ioswab8(val);
  478. SLOW_DOWN_IO;
  479. }
  480. @@ -429,7 +429,7 @@
  481. {
  482. port = __swizzle_addr_w(port);
  483. - *(volatile u16 *)(mips_io_port_base + port) = __ioswab16(val);
  484. + *(volatile __u16 *)(mips_io_port_base + port) = __ioswab16(val);
  485. SLOW_DOWN_IO;
  486. }
  487. @@ -437,7 +437,7 @@
  488. {
  489. port = __swizzle_addr_l(port);
  490. - *(volatile u32 *)(mips_io_port_base + port) = __ioswab32(val);
  491. + *(volatile __u32 *)(mips_io_port_base + port) = __ioswab32(val);
  492. SLOW_DOWN_IO;
  493. }
  494. @@ -452,30 +452,30 @@
  495. {
  496. port = __swizzle_addr_b(port);
  497. - return __ioswab8(*(volatile u8 *)(mips_io_port_base + port));
  498. + return __ioswab8(*(volatile __u8 *)(mips_io_port_base + port));
  499. }
  500. static inline unsigned short __inw(unsigned long port)
  501. {
  502. port = __swizzle_addr_w(port);
  503. - return __ioswab16(*(volatile u16 *)(mips_io_port_base + port));
  504. + return __ioswab16(*(volatile __u16 *)(mips_io_port_base + port));
  505. }
  506. static inline unsigned int __inl(unsigned long port)
  507. {
  508. port = __swizzle_addr_l(port);
  509. - return __ioswab32(*(volatile u32 *)(mips_io_port_base + port));
  510. + return __ioswab32(*(volatile __u32 *)(mips_io_port_base + port));
  511. }
  512. static inline unsigned char __inb_p(unsigned long port)
  513. {
  514. - u8 __val;
  515. + __u8 __val;
  516. port = __swizzle_addr_b(port);
  517. - __val = *(volatile u8 *)(mips_io_port_base + port);
  518. + __val = *(volatile __u8 *)(mips_io_port_base + port);
  519. SLOW_DOWN_IO;
  520. return __ioswab8(__val);
  521. @@ -483,11 +483,11 @@
  522. static inline unsigned short __inw_p(unsigned long port)
  523. {
  524. - u16 __val;
  525. + __u16 __val;
  526. port = __swizzle_addr_w(port);
  527. - __val = *(volatile u16 *)(mips_io_port_base + port);
  528. + __val = *(volatile __u16 *)(mips_io_port_base + port);
  529. SLOW_DOWN_IO;
  530. return __ioswab16(__val);
  531. @@ -495,11 +495,11 @@
  532. static inline unsigned int __inl_p(unsigned long port)
  533. {
  534. - u32 __val;
  535. + __u32 __val;
  536. port = __swizzle_addr_l(port);
  537. - __val = *(volatile u32 *)(mips_io_port_base + port);
  538. + __val = *(volatile __u32 *)(mips_io_port_base + port);
  539. SLOW_DOWN_IO;
  540. return __ioswab32(__val);
  541. @@ -515,7 +515,7 @@
  542. static inline void __outsb(unsigned long port, void *addr, unsigned int count)
  543. {
  544. while (count--) {
  545. - outb(*(u8 *)addr, port);
  546. + outb(*(__u8 *)addr, port);
  547. addr++;
  548. }
  549. }
  550. @@ -523,7 +523,7 @@
  551. static inline void __insb(unsigned long port, void *addr, unsigned int count)
  552. {
  553. while (count--) {
  554. - *(u8 *)addr = inb(port);
  555. + *(__u8 *)addr = inb(port);
  556. addr++;
  557. }
  558. }
  559. @@ -531,7 +531,7 @@
  560. static inline void __outsw(unsigned long port, void *addr, unsigned int count)
  561. {
  562. while (count--) {
  563. - outw(*(u16 *)addr, port);
  564. + outw(*(__u16 *)addr, port);
  565. addr += 2;
  566. }
  567. }
  568. @@ -539,7 +539,7 @@
  569. static inline void __insw(unsigned long port, void *addr, unsigned int count)
  570. {
  571. while (count--) {
  572. - *(u16 *)addr = inw(port);
  573. + *(__u16 *)addr = inw(port);
  574. addr += 2;
  575. }
  576. }
  577. @@ -547,7 +547,7 @@
  578. static inline void __outsl(unsigned long port, void *addr, unsigned int count)
  579. {
  580. while (count--) {
  581. - outl(*(u32 *)addr, port);
  582. + outl(*(__u32 *)addr, port);
  583. addr += 4;
  584. }
  585. }
  586. @@ -555,7 +555,7 @@
  587. static inline void __insl(unsigned long port, void *addr, unsigned int count)
  588. {
  589. while (count--) {
  590. - *(u32 *)addr = inl(port);
  591. + *(__u32 *)addr = inl(port);
  592. addr += 4;
  593. }
  594. }
  595. @@ -617,7 +617,7 @@
  596. #define __CSR_32_ADJUST 0
  597. #endif
  598. -#define csr_out32(v,a) (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST) = (v))
  599. -#define csr_in32(a) (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST))
  600. +#define csr_out32(v,a) (*(volatile __u32 *)((unsigned long)(a) + __CSR_32_ADJUST) = (v))
  601. +#define csr_in32(a) (*(volatile __u32 *)((unsigned long)(a) + __CSR_32_ADJUST))
  602. #endif /* _ASM_IO_H */
  603. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/ip32/mace.h linux-libc-headers-2.6.8.0/include/asm-mips/ip32/mace.h
  604. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/ip32/mace.h 2004-06-09 07:00:41.000000000 -0500
  605. +++ linux-libc-headers-2.6.8.0/include/asm-mips/ip32/mace.h 2004-08-26 05:14:41.000000000 -0500
  606. @@ -22,7 +22,7 @@
  607. #undef BIT
  608. #define BIT(x) (1ULL << (x))
  609. -#ifdef CONFIG_MIPS32
  610. +#ifndef __mips64
  611. typedef struct {
  612. volatile unsigned long long reg;
  613. } mace64_t;
  614. @@ -32,7 +32,7 @@
  615. volatile unsigned long reg;
  616. } mace32_t;
  617. #endif
  618. -#ifdef CONFIG_MIPS64
  619. +#ifdef __mips64
  620. typedef struct {
  621. volatile unsigned long reg;
  622. } mace64_t;
  623. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/it8172/it8172.h linux-libc-headers-2.6.8.0/include/asm-mips/it8172/it8172.h
  624. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/it8172/it8172.h 2003-12-15 12:47:03.000000000 -0600
  625. +++ linux-libc-headers-2.6.8.0/include/asm-mips/it8172/it8172.h 2004-08-26 05:22:54.000000000 -0500
  626. @@ -336,13 +336,13 @@
  627. #define TIMER_TIDR 0x0E
  628. -#define IT_WRITE(ofs, data) *(volatile u32 *)KSEG1ADDR((IT8172_BASE+ofs)) = data
  629. -#define IT_READ(ofs, data) data = *(volatile u32 *)KSEG1ADDR((IT8172_BASE+ofs))
  630. +#define IT_WRITE(ofs, data) *(volatile __u32 *)KSEG1ADDR((IT8172_BASE+ofs)) = data
  631. +#define IT_READ(ofs, data) data = *(volatile __u32 *)KSEG1ADDR((IT8172_BASE+ofs))
  632. -#define IT_IO_WRITE(ofs, data) *(volatile u32 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs)) = data
  633. -#define IT_IO_READ(ofs, data) data = *(volatile u32 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs))
  634. +#define IT_IO_WRITE(ofs, data) *(volatile __u32 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs)) = data
  635. +#define IT_IO_READ(ofs, data) data = *(volatile __u32 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs))
  636. -#define IT_IO_WRITE16(ofs, data) *(volatile u16 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs)) = data
  637. -#define IT_IO_READ16(ofs, data) data = *(volatile u16 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs))
  638. +#define IT_IO_WRITE16(ofs, data) *(volatile __u16 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs)) = data
  639. +#define IT_IO_READ16(ofs, data) data = *(volatile __u16 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs))
  640. #endif
  641. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/lasat/head.h linux-libc-headers-2.6.8.0/include/asm-mips/lasat/head.h
  642. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/lasat/head.h 2003-12-15 12:47:03.000000000 -0600
  643. +++ linux-libc-headers-2.6.8.0/include/asm-mips/lasat/head.h 2004-08-26 05:23:42.000000000 -0500
  644. @@ -10,12 +10,12 @@
  645. #ifndef _LANGUAGE_ASSEMBLY
  646. #include <linux/types.h>
  647. struct bootloader_header {
  648. - u32 magic[2];
  649. - u32 version;
  650. - u32 image_start;
  651. - u32 image_size;
  652. - u32 kernel_start;
  653. - u32 kernel_entry;
  654. + __u32 magic[2];
  655. + __u32 version;
  656. + __u32 image_start;
  657. + __u32 image_size;
  658. + __u32 kernel_start;
  659. + __u32 kernel_entry;
  660. };
  661. #endif
  662. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/lasat/lasat.h linux-libc-headers-2.6.8.0/include/asm-mips/lasat/lasat.h
  663. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/lasat/lasat.h 2004-06-09 07:00:42.000000000 -0500
  664. +++ linux-libc-headers-2.6.8.0/include/asm-mips/lasat/lasat.h 2004-08-26 05:23:50.000000000 -0500
  665. @@ -25,9 +25,9 @@
  666. #ifndef _LANGUAGE_ASSEMBLY
  667. extern struct lasat_misc {
  668. - volatile u32 *reset_reg;
  669. - volatile u32 *flash_wp_reg;
  670. - u32 flash_wp_bit;
  671. + volatile __u32 *reset_reg;
  672. + volatile __u32 *flash_wp_reg;
  673. + __u32 flash_wp_bit;
  674. } *lasat_misc;
  675. enum lasat_mtdparts {
  676. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/m48t35.h linux-libc-headers-2.6.8.0/include/asm-mips/m48t35.h
  677. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/m48t35.h 2004-01-17 17:03:44.000000000 -0600
  678. +++ linux-libc-headers-2.6.8.0/include/asm-mips/m48t35.h 2004-08-26 05:23:39.000000000 -0500
  679. @@ -8,15 +8,15 @@
  680. extern spinlock_t rtc_lock;
  681. struct m48t35_rtc {
  682. - volatile u8 pad[0x7ff8]; /* starts at 0x7ff8 */
  683. - volatile u8 control;
  684. - volatile u8 sec;
  685. - volatile u8 min;
  686. - volatile u8 hour;
  687. - volatile u8 day;
  688. - volatile u8 date;
  689. - volatile u8 month;
  690. - volatile u8 year;
  691. + volatile __u8 pad[0x7ff8]; /* starts at 0x7ff8 */
  692. + volatile __u8 control;
  693. + volatile __u8 sec;
  694. + volatile __u8 min;
  695. + volatile __u8 hour;
  696. + volatile __u8 day;
  697. + volatile __u8 date;
  698. + volatile __u8 month;
  699. + volatile __u8 year;
  700. };
  701. #define M48T35_RTC_SET 0x80
  702. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/mips-boards/bonito64.h linux-libc-headers-2.6.8.0/include/asm-mips/mips-boards/bonito64.h
  703. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/mips-boards/bonito64.h 2004-03-28 07:51:54.000000000 -0600
  704. +++ linux-libc-headers-2.6.8.0/include/asm-mips/mips-boards/bonito64.h 2004-08-26 05:21:59.000000000 -0500
  705. @@ -34,7 +34,7 @@
  706. extern unsigned long _pcictrl_bonito;
  707. extern unsigned long _pcictrl_bonito_pcicfg;
  708. -#define BONITO(x) *(volatile u32 *)(_pcictrl_bonito + (x))
  709. +#define BONITO(x) *(volatile __u32 *)(_pcictrl_bonito + (x))
  710. #endif /* __ASSEMBLY__ */
  711. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/mips-boards/generic.h linux-libc-headers-2.6.8.0/include/asm-mips/mips-boards/generic.h
  712. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/mips-boards/generic.h 2004-03-28 07:51:54.000000000 -0600
  713. +++ linux-libc-headers-2.6.8.0/include/asm-mips/mips-boards/generic.h 2004-08-26 05:22:06.000000000 -0500
  714. @@ -74,7 +74,7 @@
  715. #define MIPS_REVISION_CORID_CORE_EMUL_BON 0x63
  716. #define MIPS_REVISION_CORID_CORE_EMUL_MSC 0x65
  717. -#define MIPS_REVISION_CORID (((*(volatile u32 *)ioremap(MIPS_REVISION_REG, 4)) >> 10) & 0x3f)
  718. +#define MIPS_REVISION_CORID (((*(volatile __u32 *)ioremap(MIPS_REVISION_REG, 4)) >> 10) & 0x3f)
  719. extern unsigned int mips_revision_corid;
  720. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/mips-boards/msc01_pci.h linux-libc-headers-2.6.8.0/include/asm-mips/mips-boards/msc01_pci.h
  721. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/mips-boards/msc01_pci.h 2004-03-28 07:51:54.000000000 -0600
  722. +++ linux-libc-headers-2.6.8.0/include/asm-mips/mips-boards/msc01_pci.h 2004-08-26 05:22:10.000000000 -0500
  723. @@ -212,8 +212,8 @@
  724. #define MSC01_PCI_REG_BASE _pcictrl_msc
  725. -#define MSC_WRITE(reg, data) do { *(volatile u32 *)(reg) = data; } while (0)
  726. -#define MSC_READ(reg, data) do { data = *(volatile u32 *)(reg); } while (0)
  727. +#define MSC_WRITE(reg, data) do { *(volatile __u32 *)(reg) = data; } while (0)
  728. +#define MSC_READ(reg, data) do { data = *(volatile __u32 *)(reg); } while (0)
  729. /*
  730. * Registers absolute addresses
  731. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/mipsregs.h linux-libc-headers-2.6.8.0/include/asm-mips/mipsregs.h
  732. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/mipsregs.h 2004-08-18 13:15:41.000000000 -0500
  733. +++ linux-libc-headers-2.6.8.0/include/asm-mips/mipsregs.h 2004-08-26 13:00:51.000000000 -0500
  734. @@ -14,7 +14,6 @@
  735. #define _ASM_MIPSREGS_H
  736. #include <linux/linkage.h>
  737. -#include <asm/hazards.h>
  738. /*
  739. * The following macros are especially useful for __asm__
  740. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/mmu_context.h linux-libc-headers-2.6.8.0/include/asm-mips/mmu_context.h
  741. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/mmu_context.h 2004-08-18 13:15:41.000000000 -0500
  742. +++ linux-libc-headers-2.6.8.0/include/asm-mips/mmu_context.h 2004-08-26 05:14:41.000000000 -0500
  743. @@ -27,12 +27,12 @@
  744. */
  745. #define TLBMISS_HANDLER_SETUP_PGD(pgd) \
  746. pgd_current[smp_processor_id()] = (unsigned long)(pgd)
  747. -#ifdef CONFIG_MIPS32
  748. +#ifndef __mips64
  749. #define TLBMISS_HANDLER_SETUP() \
  750. write_c0_context((unsigned long) smp_processor_id() << 23); \
  751. TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir)
  752. #endif
  753. -#ifdef CONFIG_MIPS64
  754. +#ifdef __mips64
  755. #define TLBMISS_HANDLER_SETUP() \
  756. write_c0_context((unsigned long) &pgd_current[smp_processor_id()] << 23); \
  757. TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir)
  758. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/module.h linux-libc-headers-2.6.8.0/include/asm-mips/module.h
  759. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/module.h 2004-08-18 13:15:41.000000000 -0500
  760. +++ linux-libc-headers-2.6.8.0/include/asm-mips/module.h 2004-08-26 05:14:41.000000000 -0500
  761. @@ -21,7 +21,7 @@
  762. Elf64_Sxword r_addend; /* Addend. */
  763. } Elf64_Mips_Rela;
  764. -#ifdef CONFIG_MIPS32
  765. +#ifndef __mips64
  766. #define Elf_Shdr Elf32_Shdr
  767. #define Elf_Sym Elf32_Sym
  768. @@ -29,7 +29,7 @@
  769. #endif
  770. -#ifdef CONFIG_MIPS64
  771. +#ifdef __mips64
  772. #define Elf_Shdr Elf64_Shdr
  773. #define Elf_Sym Elf64_Sym
  774. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/msgbuf.h linux-libc-headers-2.6.8.0/include/asm-mips/msgbuf.h
  775. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/msgbuf.h 2004-01-17 17:03:44.000000000 -0600
  776. +++ linux-libc-headers-2.6.8.0/include/asm-mips/msgbuf.h 2004-08-26 05:15:04.000000000 -0500
  777. @@ -14,25 +14,25 @@
  778. struct msqid64_ds {
  779. struct ipc64_perm msg_perm;
  780. -#if defined(CONFIG_MIPS32) && !defined(CONFIG_CPU_LITTLE_ENDIAN)
  781. +#if !defined(__mips64) && !defined(CONFIG_CPU_LITTLE_ENDIAN)
  782. unsigned long __unused1;
  783. #endif
  784. __kernel_time_t msg_stime; /* last msgsnd time */
  785. -#if defined(CONFIG_MIPS32) && defined(CONFIG_CPU_LITTLE_ENDIAN)
  786. +#if !defined(__mips64) && defined(CONFIG_CPU_LITTLE_ENDIAN)
  787. unsigned long __unused1;
  788. #endif
  789. -#if defined(CONFIG_MIPS32) && !defined(CONFIG_CPU_LITTLE_ENDIAN)
  790. +#if !defined(__mips64) && !defined(CONFIG_CPU_LITTLE_ENDIAN)
  791. unsigned long __unused2;
  792. #endif
  793. __kernel_time_t msg_rtime; /* last msgrcv time */
  794. -#if defined(CONFIG_MIPS32) && defined(CONFIG_CPU_LITTLE_ENDIAN)
  795. +#if !defined(__mips64) && defined(CONFIG_CPU_LITTLE_ENDIAN)
  796. unsigned long __unused2;
  797. #endif
  798. -#if defined(CONFIG_MIPS32) && !defined(CONFIG_CPU_LITTLE_ENDIAN)
  799. +#if !defined(__mips64) && !defined(CONFIG_CPU_LITTLE_ENDIAN)
  800. unsigned long __unused3;
  801. #endif
  802. __kernel_time_t msg_ctime; /* last change time */
  803. -#if defined(CONFIG_MIPS32) && defined(CONFIG_CPU_LITTLE_ENDIAN)
  804. +#if !defined(__mips64) && defined(CONFIG_CPU_LITTLE_ENDIAN)
  805. unsigned long __unused3;
  806. #endif
  807. unsigned long msg_cbytes; /* current number of bytes on queue */
  808. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/nile4.h linux-libc-headers-2.6.8.0/include/asm-mips/nile4.h
  809. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/nile4.h 2003-12-15 12:47:02.000000000 -0600
  810. +++ linux-libc-headers-2.6.8.0/include/asm-mips/nile4.h 2004-08-26 05:22:46.000000000 -0500
  811. @@ -202,45 +202,45 @@
  812. static inline void nile4_sync(void)
  813. {
  814. - volatile u32 *p = (volatile u32 *)0xbfc00000;
  815. + volatile __u32 *p = (volatile __u32 *)0xbfc00000;
  816. (void)(*p);
  817. }
  818. -static inline void nile4_out32(u32 offset, u32 val)
  819. +static inline void nile4_out32(__u32 offset, __u32 val)
  820. {
  821. - *(volatile u32 *)(NILE4_BASE+offset) = val;
  822. + *(volatile __u32 *)(NILE4_BASE+offset) = val;
  823. nile4_sync();
  824. }
  825. -static inline u32 nile4_in32(u32 offset)
  826. +static inline __u32 nile4_in32(__u32 offset)
  827. {
  828. - u32 val = *(volatile u32 *)(NILE4_BASE+offset);
  829. + __u32 val = *(volatile __u32 *)(NILE4_BASE+offset);
  830. nile4_sync();
  831. return val;
  832. }
  833. -static inline void nile4_out16(u32 offset, u16 val)
  834. +static inline void nile4_out16(__u32 offset, __u16 val)
  835. {
  836. - *(volatile u16 *)(NILE4_BASE+offset) = val;
  837. + *(volatile __u16 *)(NILE4_BASE+offset) = val;
  838. nile4_sync();
  839. }
  840. -static inline u16 nile4_in16(u32 offset)
  841. +static inline __u16 nile4_in16(__u32 offset)
  842. {
  843. - u16 val = *(volatile u16 *)(NILE4_BASE+offset);
  844. + __u16 val = *(volatile __u16 *)(NILE4_BASE+offset);
  845. nile4_sync();
  846. return val;
  847. }
  848. -static inline void nile4_out8(u32 offset, u8 val)
  849. +static inline void nile4_out8(__u32 offset, __u8 val)
  850. {
  851. - *(volatile u8 *)(NILE4_BASE+offset) = val;
  852. + *(volatile __u8 *)(NILE4_BASE+offset) = val;
  853. nile4_sync();
  854. }
  855. -static inline u8 nile4_in8(u32 offset)
  856. +static inline __u8 nile4_in8(__u32 offset)
  857. {
  858. - u8 val = *(volatile u8 *)(NILE4_BASE+offset);
  859. + __u8 val = *(volatile __u8 *)(NILE4_BASE+offset);
  860. nile4_sync();
  861. return val;
  862. }
  863. @@ -250,7 +250,7 @@
  864. * Physical Device Address Registers
  865. */
  866. -extern void nile4_set_pdar(u32 pdar, u32 phys, u32 size, int width,
  867. +extern void nile4_set_pdar(__u32 pdar, __u32 phys, __u32 size, int width,
  868. int on_memory_bus, int visible);
  869. @@ -276,7 +276,7 @@
  870. #define NILE4_PCI_IACK_BASE NILE4_PCI_IO_BASE
  871. -extern void nile4_set_pmr(u32 pmr, u32 type, u32 addr);
  872. +extern void nile4_set_pmr(__u32 pmr, __u32 type, __u32 addr);
  873. /*
  874. @@ -296,14 +296,14 @@
  875. extern void nile4_enable_irq(unsigned int nile4_irq);
  876. extern void nile4_disable_irq(unsigned int nile4_irq);
  877. extern void nile4_disable_irq_all(void);
  878. -extern u16 nile4_get_irq_stat(int cpu_irq);
  879. +extern __u16 nile4_get_irq_stat(int cpu_irq);
  880. extern void nile4_enable_irq_output(int cpu_irq);
  881. extern void nile4_disable_irq_output(int cpu_irq);
  882. extern void nile4_set_pci_irq_polarity(int pci_irq, int high);
  883. extern void nile4_set_pci_irq_level_or_edge(int pci_irq, int level);
  884. extern void nile4_clear_irq(int nile4_irq);
  885. -extern void nile4_clear_irq_mask(u32 mask);
  886. -extern u8 nile4_i8259_iack(void);
  887. +extern void nile4_clear_irq_mask(__u32 mask);
  888. +extern __u8 nile4_i8259_iack(void);
  889. extern void nile4_dump_irq_status(void); /* Debug */
  890. #endif
  891. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/paccess.h linux-libc-headers-2.6.8.0/include/asm-mips/paccess.h
  892. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/paccess.h 2004-01-17 17:03:44.000000000 -0600
  893. +++ linux-libc-headers-2.6.8.0/include/asm-mips/paccess.h 2004-08-26 05:17:48.000000000 -0500
  894. @@ -14,11 +14,12 @@
  895. #define _ASM_PACCESS_H
  896. #include <linux/errno.h>
  897. +#include <linux/linkage.h>
  898. -#ifdef CONFIG_MIPS32
  899. +#ifndef __mips64
  900. #define __PA_ADDR ".word"
  901. #endif
  902. -#ifdef CONFIG_MIPS64
  903. +#ifdef __mips64
  904. #define __PA_ADDR ".dword"
  905. #endif
  906. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/pci/bridge.h linux-libc-headers-2.6.8.0/include/asm-mips/pci/bridge.h
  907. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/pci/bridge.h 2004-03-28 07:51:54.000000000 -0600
  908. +++ linux-libc-headers-2.6.8.0/include/asm-mips/pci/bridge.h 2004-08-26 05:25:40.000000000 -0500
  909. @@ -48,9 +48,9 @@
  910. * All accesses to bridge hardware registers must be done
  911. * using 32-bit loads and stores.
  912. */
  913. -typedef u32 bridgereg_t;
  914. +typedef __u32 bridgereg_t;
  915. -typedef u64 bridge_ate_t;
  916. +typedef __u64 bridge_ate_t;
  917. /* pointers to bridge ATEs
  918. * are always "pointer to volatile"
  919. @@ -199,37 +199,37 @@
  920. /* PCI Device Configuration Spaces 0x020000-0x027FFF */
  921. union { /* make all access sizes available. */
  922. - u8 c[0x1000 / 1];
  923. - u16 s[0x1000 / 2];
  924. - u32 l[0x1000 / 4];
  925. - u64 d[0x1000 / 8];
  926. + __u8 c[0x1000 / 1];
  927. + __u16 s[0x1000 / 2];
  928. + __u32 l[0x1000 / 4];
  929. + __u64 d[0x1000 / 8];
  930. union {
  931. - u8 c[0x100 / 1];
  932. - u16 s[0x100 / 2];
  933. - u32 l[0x100 / 4];
  934. - u64 d[0x100 / 8];
  935. + __u8 c[0x100 / 1];
  936. + __u16 s[0x100 / 2];
  937. + __u32 l[0x100 / 4];
  938. + __u64 d[0x100 / 8];
  939. } f[8];
  940. } b_type0_cfg_dev[8]; /* 0x020000 */
  941. /* PCI Type 1 Configuration Space 0x028000-0x028FFF */
  942. union { /* make all access sizes available. */
  943. - u8 c[0x1000 / 1];
  944. - u16 s[0x1000 / 2];
  945. - u32 l[0x1000 / 4];
  946. - u64 d[0x1000 / 8];
  947. + __u8 c[0x1000 / 1];
  948. + __u16 s[0x1000 / 2];
  949. + __u32 l[0x1000 / 4];
  950. + __u64 d[0x1000 / 8];
  951. } b_type1_cfg; /* 0x028000-0x029000 */
  952. char _pad_029000[0x007000]; /* 0x029000-0x030000 */
  953. /* PCI Interrupt Acknowledge Cycle 0x030000 */
  954. union {
  955. - u8 c[8 / 1];
  956. - u16 s[8 / 2];
  957. - u32 l[8 / 4];
  958. - u64 d[8 / 8];
  959. + __u8 c[8 / 1];
  960. + __u16 s[8 / 2];
  961. + __u32 l[8 / 4];
  962. + __u64 d[8 / 8];
  963. } b_pci_iack; /* 0x030000 */
  964. - u8 _pad_030007[0x04fff8]; /* 0x030008-0x07FFFF */
  965. + __u8 _pad_030007[0x04fff8]; /* 0x030008-0x07FFFF */
  966. /* External Address Translation Entry RAM 0x080000-0x0FFFFF */
  967. bridge_ate_t b_ext_ate_ram[0x10000];
  968. @@ -239,10 +239,10 @@
  969. /* PCI/GIO Device Spaces 0x200000-0xBFFFFF */
  970. union { /* make all access sizes available. */
  971. - u8 c[0x100000 / 1];
  972. - u16 s[0x100000 / 2];
  973. - u32 l[0x100000 / 4];
  974. - u64 d[0x100000 / 8];
  975. + __u8 c[0x100000 / 1];
  976. + __u16 s[0x100000 / 2];
  977. + __u32 l[0x100000 / 4];
  978. + __u64 d[0x100000 / 8];
  979. } b_devio_raw[10]; /* 0x200000 */
  980. /* b_devio macro is a bit strange; it reflects the
  981. @@ -253,10 +253,10 @@
  982. /* External Flash Proms 1,0 0xC00000-0xFFFFFF */
  983. union { /* make all access sizes available. */
  984. - u8 c[0x400000 / 1]; /* read-only */
  985. - u16 s[0x400000 / 2]; /* read-write */
  986. - u32 l[0x400000 / 4]; /* read-only */
  987. - u64 d[0x400000 / 8]; /* read-only */
  988. + __u8 c[0x400000 / 1]; /* read-only */
  989. + __u16 s[0x400000 / 2]; /* read-write */
  990. + __u32 l[0x400000 / 4]; /* read-only */
  991. + __u64 d[0x400000 / 8]; /* read-only */
  992. } b_external_flash; /* 0xC00000 */
  993. } bridge_t;
  994. @@ -266,9 +266,9 @@
  995. */
  996. typedef struct bridge_err_cmdword_s {
  997. union {
  998. - u32 cmd_word;
  999. + __u32 cmd_word;
  1000. struct {
  1001. - u32 didn:4, /* Destination ID */
  1002. + __u32 didn:4, /* Destination ID */
  1003. sidn:4, /* Source ID */
  1004. pactyp:4, /* Packet type */
  1005. tnum:5, /* Trans Number */
  1006. @@ -799,17 +799,17 @@
  1007. #ifndef __ASSEMBLY__
  1008. /* Address translation entry for mapped pci32 accesses */
  1009. typedef union ate_u {
  1010. - u64 ent;
  1011. + __u64 ent;
  1012. struct ate_s {
  1013. - u64 rmf:16;
  1014. - u64 addr:36;
  1015. - u64 targ:4;
  1016. - u64 reserved:3;
  1017. - u64 barrier:1;
  1018. - u64 prefetch:1;
  1019. - u64 precise:1;
  1020. - u64 coherent:1;
  1021. - u64 valid:1;
  1022. + __u64 rmf:16;
  1023. + __u64 addr:36;
  1024. + __u64 targ:4;
  1025. + __u64 reserved:3;
  1026. + __u64 barrier:1;
  1027. + __u64 prefetch:1;
  1028. + __u64 precise:1;
  1029. + __u64 coherent:1;
  1030. + __u64 valid:1;
  1031. } field;
  1032. } ate_t;
  1033. #endif /* !__ASSEMBLY__ */
  1034. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/pci_channel.h linux-libc-headers-2.6.8.0/include/asm-mips/pci_channel.h
  1035. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/pci_channel.h 2004-03-28 07:51:52.000000000 -0600
  1036. +++ linux-libc-headers-2.6.8.0/include/asm-mips/pci_channel.h 2004-08-26 05:21:47.000000000 -0500
  1037. @@ -41,6 +41,6 @@
  1038. /*
  1039. * board supplied pci irq fixup routine
  1040. */
  1041. -extern int pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin);
  1042. +extern int pcibios_map_irq(struct pci_dev *dev, __u8 slot, __u8 pin);
  1043. #endif /* __ASM_PCI_CHANNEL_H */
  1044. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/pgalloc.h linux-libc-headers-2.6.8.0/include/asm-mips/pgalloc.h
  1045. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/pgalloc.h 2004-06-09 07:00:41.000000000 -0500
  1046. +++ linux-libc-headers-2.6.8.0/include/asm-mips/pgalloc.h 2004-08-26 05:14:41.000000000 -0500
  1047. @@ -85,7 +85,7 @@
  1048. #define __pte_free_tlb(tlb,pte) tlb_remove_page((tlb),(pte))
  1049. -#ifdef CONFIG_MIPS32
  1050. +#ifndef __mips64
  1051. #define pgd_populate(mm, pmd, pte) BUG()
  1052. /*
  1053. @@ -97,7 +97,7 @@
  1054. #define __pmd_free_tlb(tlb,x) do { } while (0)
  1055. #endif
  1056. -#ifdef CONFIG_MIPS64
  1057. +#ifdef __mips64
  1058. #define pgd_populate(mm, pgd, pmd) set_pgd(pgd, __pgd(pmd))
  1059. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/prctl.h linux-libc-headers-2.6.8.0/include/asm-mips/prctl.h
  1060. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/prctl.h 2003-12-15 12:47:02.000000000 -0600
  1061. +++ linux-libc-headers-2.6.8.0/include/asm-mips/prctl.h 2004-08-26 05:21:43.000000000 -0500
  1062. @@ -12,21 +12,21 @@
  1063. #define PRDA ((struct prda *) PRDA_ADDRESS)
  1064. struct prda_sys {
  1065. - pid_t t_pid;
  1066. - u32 t_hint;
  1067. - u32 t_dlactseq;
  1068. - u32 t_fpflags;
  1069. - u32 t_prid; /* processor type, $prid CP0 register */
  1070. - u32 t_dlendseq;
  1071. - u64 t_unused1[5];
  1072. - pid_t t_rpid;
  1073. - s32 t_resched;
  1074. - u32 t_unused[8];
  1075. - u32 t_cpu; /* current/last cpu */
  1076. + pid_t t_pid;
  1077. + __u32 t_hint;
  1078. + __u32 t_dlactseq;
  1079. + __u32 t_fpflags;
  1080. + __u32 t_prid; /* processor type, $prid CP0 register */
  1081. + __u32 t_dlendseq;
  1082. + __u64 t_unused1[5];
  1083. + pid_t t_rpid;
  1084. + __s32 t_resched;
  1085. + __u32 t_unused[8];
  1086. + __u32 t_cpu; /* current/last cpu */
  1087. /* FIXME: The signal information, not supported by Linux now */
  1088. - u32 t_flags; /* if true, then the sigprocmask is in userspace */
  1089. - u32 t_sigprocmask [1]; /* the sigprocmask */
  1090. + __u32 t_flags; /* if true, then the sigprocmask is in userspace */
  1091. + __u32 t_sigprocmask [1]; /* the sigprocmask */
  1092. };
  1093. struct prda {
  1094. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/processor.h linux-libc-headers-2.6.8.0/include/asm-mips/processor.h
  1095. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/processor.h 2004-08-18 13:15:41.000000000 -0500
  1096. +++ linux-libc-headers-2.6.8.0/include/asm-mips/processor.h 2004-08-26 05:23:24.000000000 -0500
  1097. @@ -102,7 +102,7 @@
  1098. #define MCA_bus 0
  1099. #define MCA_bus__is_a_macro /* for versions in ksyms.c */
  1100. -#ifdef CONFIG_MIPS32
  1101. +#ifndef __mips64
  1102. /*
  1103. * User space process size: 2GB. This is hardcoded into a few places,
  1104. * so don't change it unless you know what you are doing.
  1105. @@ -116,7 +116,7 @@
  1106. #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
  1107. #endif
  1108. -#ifdef CONFIG_MIPS64
  1109. +#ifdef __mips64
  1110. /*
  1111. * User space process size: 1TB. This is hardcoded into a few places,
  1112. * so don't change it unless you know what you are doing. TASK_SIZE
  1113. @@ -142,7 +142,7 @@
  1114. #define NUM_FPU_REGS 32
  1115. -typedef u64 fpureg_t;
  1116. +typedef __u64 fpureg_t;
  1117. struct mips_fpu_hard_struct {
  1118. fpureg_t fpr[NUM_FPU_REGS];
  1119. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/ptrace.h linux-libc-headers-2.6.8.0/include/asm-mips/ptrace.h
  1120. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/ptrace.h 2004-03-28 07:51:52.000000000 -0600
  1121. +++ linux-libc-headers-2.6.8.0/include/asm-mips/ptrace.h 2004-08-26 05:14:41.000000000 -0500
  1122. @@ -27,7 +27,7 @@
  1123. * system call/exception. As usual the registers k0/k1 aren't being saved.
  1124. */
  1125. struct pt_regs {
  1126. -#ifdef CONFIG_MIPS32
  1127. +#ifndef __mips64
  1128. /* Pad bytes for argument save space on the stack. */
  1129. unsigned long pad0[6];
  1130. #endif
  1131. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/serial.h linux-libc-headers-2.6.8.0/include/asm-mips/serial.h
  1132. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/serial.h 2004-08-18 13:15:41.000000000 -0500
  1133. +++ linux-libc-headers-2.6.8.0/include/asm-mips/serial.h 2004-08-26 13:21:37.000000000 -0500
  1134. @@ -68,7 +68,7 @@
  1135. #define _JAZZ_SERIAL_INIT(int, base) \
  1136. { .baud_base = JAZZ_BASE_BAUD, .irq = int, .flags = STD_COM_FLAGS, \
  1137. - .iomem_base = (u8 *) base, .iomem_reg_shift = 0, \
  1138. + .iomem_base = (__u8 *) base, .iomem_reg_shift = 0, \
  1139. .io_type = SERIAL_IO_MEM }
  1140. #define JAZZ_SERIAL_PORT_DEFNS \
  1141. _JAZZ_SERIAL_INIT(JAZZ_SERIAL1_IRQ, JAZZ_SERIAL1_BASE), \
  1142. @@ -243,7 +243,7 @@
  1143. #define _JAGUAR_ATX_SERIAL_INIT(int, base) \
  1144. { baud_base: JAGUAR_ATX_BASE_BAUD, irq: int, \
  1145. flags: (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST), \
  1146. - iomem_base: (u8 *) base, iomem_reg_shift: 2, \
  1147. + iomem_base: (__u8 *) base, iomem_reg_shift: 2, \
  1148. io_type: SERIAL_IO_MEM }
  1149. #define MOMENCO_JAGUAR_ATX_SERIAL_PORT_DEFNS \
  1150. _JAGUAR_ATX_SERIAL_INIT(JAGUAR_ATX_SERIAL1_IRQ, JAGUAR_ATX_SERIAL1_BASE)
  1151. @@ -260,7 +260,7 @@
  1152. #define _OCELOT_SERIAL_INIT(int, base) \
  1153. { .baud_base = OCELOT_BASE_BAUD, .irq = int, .flags = STD_COM_FLAGS, \
  1154. - .iomem_base = (u8 *) base, .iomem_reg_shift = 2, \
  1155. + .iomem_base = (__u8 *) base, .iomem_reg_shift = 2, \
  1156. .io_type = SERIAL_IO_MEM }
  1157. #define MOMENCO_OCELOT_SERIAL_PORT_DEFNS \
  1158. _OCELOT_SERIAL_INIT(OCELOT_SERIAL1_IRQ, OCELOT_SERIAL1_BASE)
  1159. @@ -281,7 +281,7 @@
  1160. #define _OCELOT_G_SERIAL_INIT(int, base) \
  1161. { .baud_base = OCELOT_G_BASE_BAUD, .irq = int, .flags = STD_COM_FLAGS,\
  1162. - .iomem_base = (u8 *) base, .iomem_reg_shift = 2, \
  1163. + .iomem_base = (__u8 *) base, .iomem_reg_shift = 2, \
  1164. .io_type = SERIAL_IO_MEM }
  1165. #define MOMENCO_OCELOT_G_SERIAL_PORT_DEFNS \
  1166. _OCELOT_G_SERIAL_INIT(OCELOT_G_SERIAL1_IRQ, OCELOT_G_SERIAL1_BASE)
  1167. @@ -303,7 +303,7 @@
  1168. { .baud_base = OCELOT_C_BASE_BAUD, \
  1169. .irq = (int), \
  1170. .flags = STD_COM_FLAGS, \
  1171. - .iomem_base = (u8 *) base, \
  1172. + .iomem_base = (__u8 *) base, \
  1173. .iomem_reg_shift = 2, \
  1174. .io_type = SERIAL_IO_MEM \
  1175. }
  1176. @@ -318,10 +318,10 @@
  1177. #include <asm/ddb5xxx/ddb5477.h>
  1178. #define DDB5477_SERIAL_PORT_DEFNS \
  1179. { .baud_base = BASE_BAUD, .irq = VRC5477_IRQ_UART0, \
  1180. - .flags = STD_COM_FLAGS, .iomem_base = (u8*)0xbfa04200, \
  1181. + .flags = STD_COM_FLAGS, .iomem_base = (__u8*)0xbfa04200, \
  1182. .iomem_reg_shift = 3, .io_type = SERIAL_IO_MEM}, \
  1183. { .baud_base = BASE_BAUD, .irq = VRC5477_IRQ_UART1, \
  1184. - .flags = STD_COM_FLAGS, .iomem_base = (u8*)0xbfa04240, \
  1185. + .flags = STD_COM_FLAGS, .iomem_base = (__u8*)0xbfa04240, \
  1186. .iomem_reg_shift = 3, .io_type = SERIAL_IO_MEM},
  1187. #else
  1188. #define DDB5477_SERIAL_PORT_DEFNS
  1189. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sgi/hpc3.h linux-libc-headers-2.6.8.0/include/asm-mips/sgi/hpc3.h
  1190. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sgi/hpc3.h 2003-12-15 12:47:03.000000000 -0600
  1191. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sgi/hpc3.h 2004-08-26 05:24:34.000000000 -0500
  1192. @@ -17,8 +17,8 @@
  1193. /* An HPC DMA descriptor. */
  1194. struct hpc_dma_desc {
  1195. - u32 pbuf; /* physical address of data buffer */
  1196. - u32 cntinfo; /* counter and info bits */
  1197. + __u32 pbuf; /* physical address of data buffer */
  1198. + __u32 cntinfo; /* counter and info bits */
  1199. #define HPCDMA_EOX 0x80000000 /* last desc in chain for tx */
  1200. #define HPCDMA_EOR 0x80000000 /* last desc in chain for rx */
  1201. #define HPCDMA_EOXP 0x40000000 /* end of packet for tx */
  1202. @@ -30,15 +30,15 @@
  1203. #define HPCDMA_OWN 0x00004000 /* Denotes ring buffer ownership on rx */
  1204. #define HPCDMA_BCNT 0x00003fff /* size in bytes of this dma buffer */
  1205. - u32 pnext; /* paddr of next hpc_dma_desc if any */
  1206. + __u32 pnext; /* paddr of next hpc_dma_desc if any */
  1207. };
  1208. /* The set of regs for each HPC3 PBUS DMA channel. */
  1209. struct hpc3_pbus_dmacregs {
  1210. - volatile u32 pbdma_bptr; /* pbus dma channel buffer ptr */
  1211. - volatile u32 pbdma_dptr; /* pbus dma channel desc ptr */
  1212. - u32 _unused0[0x1000/4 - 2]; /* padding */
  1213. - volatile u32 pbdma_ctrl; /* pbus dma channel control register has
  1214. + volatile __u32 pbdma_bptr; /* pbus dma channel buffer ptr */
  1215. + volatile __u32 pbdma_dptr; /* pbus dma channel desc ptr */
  1216. + __u32 _unused0[0x1000/4 - 2]; /* padding */
  1217. + volatile __u32 pbdma_ctrl; /* pbus dma channel control register has
  1218. * copletely different meaning for read
  1219. * compared with write */
  1220. /* read */
  1221. @@ -55,20 +55,20 @@
  1222. #define HPC3_PDMACTRL_FB 0x003f0000 /* Ptr to beginning of fifo */
  1223. #define HPC3_PDMACTRL_FE 0x3f000000 /* Ptr to end of fifo */
  1224. - u32 _unused1[0x1000/4 - 1]; /* padding */
  1225. + __u32 _unused1[0x1000/4 - 1]; /* padding */
  1226. };
  1227. /* The HPC3 SCSI registers, this does not include external ones. */
  1228. struct hpc3_scsiregs {
  1229. - volatile u32 cbptr; /* current dma buffer ptr, diagnostic use only */
  1230. - volatile u32 ndptr; /* next dma descriptor ptr */
  1231. - u32 _unused0[0x1000/4 - 2]; /* padding */
  1232. - volatile u32 bcd; /* byte count info */
  1233. + volatile __u32 cbptr; /* current dma buffer ptr, diagnostic use only */
  1234. + volatile __u32 ndptr; /* next dma descriptor ptr */
  1235. + __u32 _unused0[0x1000/4 - 2]; /* padding */
  1236. + volatile __u32 bcd; /* byte count info */
  1237. #define HPC3_SBCD_BCNTMSK 0x00003fff /* bytes to transfer from/to memory */
  1238. #define HPC3_SBCD_XIE 0x00004000 /* Send IRQ when done with cur buf */
  1239. #define HPC3_SBCD_EOX 0x00008000 /* Indicates this is last buf in chain */
  1240. - volatile u32 ctrl; /* control register */
  1241. + volatile __u32 ctrl; /* control register */
  1242. #define HPC3_SCTRL_IRQ 0x01 /* IRQ asserted, either dma done or parity */
  1243. #define HPC3_SCTRL_ENDIAN 0x02 /* DMA endian mode, 0=big 1=little */
  1244. #define HPC3_SCTRL_DIR 0x04 /* DMA direction, 1=dev2mem 0=mem2dev */
  1245. @@ -78,9 +78,9 @@
  1246. #define HPC3_SCTRL_CRESET 0x40 /* Resets dma channel and external controller */
  1247. #define HPC3_SCTRL_PERR 0x80 /* Bad parity on HPC3 iface to scsi controller */
  1248. - volatile u32 gfptr; /* current GIO fifo ptr */
  1249. - volatile u32 dfptr; /* current device fifo ptr */
  1250. - volatile u32 dconfig; /* DMA configuration register */
  1251. + volatile __u32 gfptr; /* current GIO fifo ptr */
  1252. + volatile __u32 dfptr; /* current device fifo ptr */
  1253. + volatile __u32 dconfig; /* DMA configuration register */
  1254. #define HPC3_SDCFG_HCLK 0x00001 /* Enable DMA half clock mode */
  1255. #define HPC3_SDCFG_D1 0x00006 /* Cycles to spend in D1 state */
  1256. #define HPC3_SDCFG_D2 0x00038 /* Cycles to spend in D2 state */
  1257. @@ -92,7 +92,7 @@
  1258. #define HPC3_SDCFG_POLL 0x08000 /* hd_dreq polarity control */
  1259. #define HPC3_SDCFG_ERLY 0x30000 /* hd_dreq behavior control bits */
  1260. - volatile u32 pconfig; /* PIO configuration register */
  1261. + volatile __u32 pconfig; /* PIO configuration register */
  1262. #define HPC3_SPCFG_P3 0x0003 /* Cycles to spend in P3 state */
  1263. #define HPC3_SPCFG_P2W 0x001c /* Cycles to spend in P2 state for writes */
  1264. #define HPC3_SPCFG_P2R 0x01e0 /* Cycles to spend in P2 state for reads */
  1265. @@ -102,21 +102,21 @@
  1266. #define HPC3_SPCFG_EPAR 0x4000 /* Enable parity checking for PIO */
  1267. #define HPC3_SPCFG_FUJI 0x8000 /* Fujitsu scsi controller mode for faster dma/pio */
  1268. - u32 _unused1[0x1000/4 - 6]; /* padding */
  1269. + __u32 _unused1[0x1000/4 - 6]; /* padding */
  1270. };
  1271. /* SEEQ ethernet HPC3 registers, only one seeq per HPC3. */
  1272. struct hpc3_ethregs {
  1273. /* Receiver registers. */
  1274. - volatile u32 rx_cbptr; /* current dma buffer ptr, diagnostic use only */
  1275. - volatile u32 rx_ndptr; /* next dma descriptor ptr */
  1276. - u32 _unused0[0x1000/4 - 2]; /* padding */
  1277. - volatile u32 rx_bcd; /* byte count info */
  1278. + volatile __u32 rx_cbptr; /* current dma buffer ptr, diagnostic use only */
  1279. + volatile __u32 rx_ndptr; /* next dma descriptor ptr */
  1280. + __u32 _unused0[0x1000/4 - 2]; /* padding */
  1281. + volatile __u32 rx_bcd; /* byte count info */
  1282. #define HPC3_ERXBCD_BCNTMSK 0x00003fff /* bytes to be sent to memory */
  1283. #define HPC3_ERXBCD_XIE 0x20000000 /* HPC3 interrupts cpu at end of this buf */
  1284. #define HPC3_ERXBCD_EOX 0x80000000 /* flags this as end of descriptor chain */
  1285. - volatile u32 rx_ctrl; /* control register */
  1286. + volatile __u32 rx_ctrl; /* control register */
  1287. #define HPC3_ERXCTRL_STAT50 0x0000003f /* Receive status reg bits of Seeq8003 */
  1288. #define HPC3_ERXCTRL_STAT6 0x00000040 /* Rdonly irq status */
  1289. #define HPC3_ERXCTRL_STAT7 0x00000080 /* Rdonlt old/new status bit from Seeq */
  1290. @@ -125,15 +125,15 @@
  1291. #define HPC3_ERXCTRL_AMASK 0x00000400 /* Tells if ACTIVE inhibits PIO's to hpc3 */
  1292. #define HPC3_ERXCTRL_RBO 0x00000800 /* Receive buffer overflow if set to 1 */
  1293. - volatile u32 rx_gfptr; /* current GIO fifo ptr */
  1294. - volatile u32 rx_dfptr; /* current device fifo ptr */
  1295. - u32 _unused1; /* padding */
  1296. - volatile u32 rx_reset; /* reset register */
  1297. + volatile __u32 rx_gfptr; /* current GIO fifo ptr */
  1298. + volatile __u32 rx_dfptr; /* current device fifo ptr */
  1299. + __u32 _unused1; /* padding */
  1300. + volatile __u32 rx_reset; /* reset register */
  1301. #define HPC3_ERXRST_CRESET 0x1 /* Reset dma channel and external controller */
  1302. #define HPC3_ERXRST_CLRIRQ 0x2 /* Clear channel interrupt */
  1303. #define HPC3_ERXRST_LBACK 0x4 /* Enable diagnostic loopback mode of Seeq8003 */
  1304. - volatile u32 rx_dconfig; /* DMA configuration register */
  1305. + volatile __u32 rx_dconfig; /* DMA configuration register */
  1306. #define HPC3_ERXDCFG_D1 0x0000f /* Cycles to spend in D1 state for PIO */
  1307. #define HPC3_ERXDCFG_D2 0x000f0 /* Cycles to spend in D2 state for PIO */
  1308. #define HPC3_ERXDCFG_D3 0x00f00 /* Cycles to spend in D3 state for PIO */
  1309. @@ -143,26 +143,26 @@
  1310. #define HPC3_ERXDCFG_FIRQ 0x08000 /* Another bad packet timeout enable */
  1311. #define HPC3_ERXDCFG_PTO 0x30000 /* Programmed timeout value for above two */
  1312. - volatile u32 rx_pconfig; /* PIO configuration register */
  1313. + volatile __u32 rx_pconfig; /* PIO configuration register */
  1314. #define HPC3_ERXPCFG_P1 0x000f /* Cycles to spend in P1 state for PIO */
  1315. #define HPC3_ERXPCFG_P2 0x00f0 /* Cycles to spend in P2 state for PIO */
  1316. #define HPC3_ERXPCFG_P3 0x0f00 /* Cycles to spend in P3 state for PIO */
  1317. #define HPC3_ERXPCFG_TST 0x1000 /* Diagnistic ram test feature bit */
  1318. - u32 _unused2[0x1000/4 - 8]; /* padding */
  1319. + __u32 _unused2[0x1000/4 - 8]; /* padding */
  1320. /* Transmitter registers. */
  1321. - volatile u32 tx_cbptr; /* current dma buffer ptr, diagnostic use only */
  1322. - volatile u32 tx_ndptr; /* next dma descriptor ptr */
  1323. - u32 _unused3[0x1000/4 - 2]; /* padding */
  1324. - volatile u32 tx_bcd; /* byte count info */
  1325. + volatile __u32 tx_cbptr; /* current dma buffer ptr, diagnostic use only */
  1326. + volatile __u32 tx_ndptr; /* next dma descriptor ptr */
  1327. + __u32 _unused3[0x1000/4 - 2]; /* padding */
  1328. + volatile __u32 tx_bcd; /* byte count info */
  1329. #define HPC3_ETXBCD_BCNTMSK 0x00003fff /* bytes to be read from memory */
  1330. #define HPC3_ETXBCD_ESAMP 0x10000000 /* if set, too late to add descriptor */
  1331. #define HPC3_ETXBCD_XIE 0x20000000 /* Interrupt cpu at end of cur desc */
  1332. #define HPC3_ETXBCD_EOP 0x40000000 /* Last byte of cur buf is end of packet */
  1333. #define HPC3_ETXBCD_EOX 0x80000000 /* This buf is the end of desc chain */
  1334. - volatile u32 tx_ctrl; /* control register */
  1335. + volatile __u32 tx_ctrl; /* control register */
  1336. #define HPC3_ETXCTRL_STAT30 0x0000000f /* Rdonly copy of seeq tx stat reg */
  1337. #define HPC3_ETXCTRL_STAT4 0x00000010 /* Indicate late collision occurred */
  1338. #define HPC3_ETXCTRL_STAT75 0x000000e0 /* Rdonly irq status from seeq */
  1339. @@ -170,9 +170,9 @@
  1340. #define HPC3_ETXCTRL_ACTIVE 0x00000200 /* DMA tx channel is active */
  1341. #define HPC3_ETXCTRL_AMASK 0x00000400 /* Indicates ACTIVE inhibits PIO's */
  1342. - volatile u32 tx_gfptr; /* current GIO fifo ptr */
  1343. - volatile u32 tx_dfptr; /* current device fifo ptr */
  1344. - u32 _unused4[0x1000/4 - 4]; /* padding */
  1345. + volatile __u32 tx_gfptr; /* current GIO fifo ptr */
  1346. + volatile __u32 tx_dfptr; /* current device fifo ptr */
  1347. + __u32 _unused4[0x1000/4 - 4]; /* padding */
  1348. };
  1349. struct hpc3_regs {
  1350. @@ -188,7 +188,7 @@
  1351. /* Here are where the hpc3 fifo's can be directly accessed
  1352. * via PIO accesses. Under normal operation we never stick
  1353. * our grubby paws in here so it's just padding. */
  1354. - u32 _unused0[0x18000/4];
  1355. + __u32 _unused0[0x18000/4];
  1356. /* HPC3 irq status regs. Due to a peculiar bug you need to
  1357. * look at two different register addresses to get at all of
  1358. @@ -197,42 +197,42 @@
  1359. * reliably report bits 9:5 of the hpc3 irq status. I told
  1360. * you it was a peculiar bug. ;-)
  1361. */
  1362. - volatile u32 istat0; /* Irq status, only bits <4:0> reliable. */
  1363. + volatile __u32 istat0; /* Irq status, only bits <4:0> reliable. */
  1364. #define HPC3_ISTAT_PBIMASK 0x0ff /* irq bits for pbus devs 0 --> 7 */
  1365. #define HPC3_ISTAT_SC0MASK 0x100 /* irq bit for scsi channel 0 */
  1366. #define HPC3_ISTAT_SC1MASK 0x200 /* irq bit for scsi channel 1 */
  1367. - volatile u32 gio_misc; /* GIO misc control bits. */
  1368. + volatile __u32 gio_misc; /* GIO misc control bits. */
  1369. #define HPC3_GIOMISC_ERTIME 0x1 /* Enable external timer real time. */
  1370. #define HPC3_GIOMISC_DENDIAN 0x2 /* dma descriptor endian, 1=lit 0=big */
  1371. - volatile u32 eeprom; /* EEPROM data reg. */
  1372. + volatile __u32 eeprom; /* EEPROM data reg. */
  1373. #define HPC3_EEPROM_EPROT 0x01 /* Protect register enable */
  1374. #define HPC3_EEPROM_CSEL 0x02 /* Chip select */
  1375. #define HPC3_EEPROM_ECLK 0x04 /* EEPROM clock */
  1376. #define HPC3_EEPROM_DATO 0x08 /* Data out */
  1377. #define HPC3_EEPROM_DATI 0x10 /* Data in */
  1378. - volatile u32 istat1; /* Irq status, only bits <9:5> reliable. */
  1379. - volatile u32 bestat; /* Bus error interrupt status reg. */
  1380. + volatile __u32 istat1; /* Irq status, only bits <9:5> reliable. */
  1381. + volatile __u32 bestat; /* Bus error interrupt status reg. */
  1382. #define HPC3_BESTAT_BLMASK 0x000ff /* Bus lane where bad parity occurred */
  1383. #define HPC3_BESTAT_CTYPE 0x00100 /* Bus cycle type, 0=PIO 1=DMA */
  1384. #define HPC3_BESTAT_PIDSHIFT 9
  1385. #define HPC3_BESTAT_PIDMASK 0x3f700 /* DMA channel parity identifier */
  1386. - u32 _unused1[0x14000/4 - 5]; /* padding */
  1387. + __u32 _unused1[0x14000/4 - 5]; /* padding */
  1388. /* Now direct PIO per-HPC3 peripheral access to external regs. */
  1389. - volatile u32 scsi0_ext[256]; /* SCSI channel 0 external regs */
  1390. - u32 _unused2[0x7c00/4];
  1391. - volatile u32 scsi1_ext[256]; /* SCSI channel 1 external regs */
  1392. - u32 _unused3[0x7c00/4];
  1393. - volatile u32 eth_ext[320]; /* Ethernet external registers */
  1394. - u32 _unused4[0x3b00/4];
  1395. + volatile __u32 scsi0_ext[256]; /* SCSI channel 0 external regs */
  1396. + __u32 _unused2[0x7c00/4];
  1397. + volatile __u32 scsi1_ext[256]; /* SCSI channel 1 external regs */
  1398. + __u32 _unused3[0x7c00/4];
  1399. + volatile __u32 eth_ext[320]; /* Ethernet external registers */
  1400. + __u32 _unused4[0x3b00/4];
  1401. /* Per-peripheral device external registers and DMA/PIO control. */
  1402. - volatile u32 pbus_extregs[16][256];
  1403. - volatile u32 pbus_dmacfg[8][128];
  1404. + volatile __u32 pbus_extregs[16][256];
  1405. + volatile __u32 pbus_dmacfg[8][128];
  1406. /* Cycles to spend in D3 for reads */
  1407. #define HPC3_DMACFG_D3R_MASK 0x00000001
  1408. #define HPC3_DMACFG_D3R_SHIFT 0
  1409. @@ -262,7 +262,7 @@
  1410. #define HPC3_DMACFG_BURST_SHIFT 22
  1411. /* Use live pbus_dreq unsynchronized signal */
  1412. #define HPC3_DMACFG_DRQLIVE 0x08000000
  1413. - volatile u32 pbus_piocfg[16][64];
  1414. + volatile __u32 pbus_piocfg[16][64];
  1415. /* Cycles to spend in P2 state for reads */
  1416. #define HPC3_PIOCFG_P2R_MASK 0x00001
  1417. #define HPC3_PIOCFG_P2R_SHIFT 0
  1418. @@ -287,21 +287,21 @@
  1419. #define HPC3_PIOCFG_EVENHI 0x80000
  1420. /* PBUS PROM control regs. */
  1421. - volatile u32 pbus_promwe; /* PROM write enable register */
  1422. + volatile __u32 pbus_promwe; /* PROM write enable register */
  1423. #define HPC3_PROM_WENAB 0x1 /* Enable writes to the PROM */
  1424. - u32 _unused5[0x0800/4 - 1];
  1425. - volatile u32 pbus_promswap; /* Chip select swap reg */
  1426. + __u32 _unused5[0x0800/4 - 1];
  1427. + volatile __u32 pbus_promswap; /* Chip select swap reg */
  1428. #define HPC3_PROM_SWAP 0x1 /* invert GIO addr bit to select prom0 or prom1 */
  1429. - u32 _unused6[0x0800/4 - 1];
  1430. - volatile u32 pbus_gout; /* PROM general purpose output reg */
  1431. + __u32 _unused6[0x0800/4 - 1];
  1432. + volatile __u32 pbus_gout; /* PROM general purpose output reg */
  1433. #define HPC3_PROM_STAT 0x1 /* General purpose status bit in gout */
  1434. - u32 _unused7[0x1000/4 - 1];
  1435. - volatile u32 rtcregs[14]; /* Dallas clock registers */
  1436. - u32 _unused8[50];
  1437. - volatile u32 bbram[8192-50-14]; /* Battery backed ram */
  1438. + __u32 _unused7[0x1000/4 - 1];
  1439. + volatile __u32 rtcregs[14]; /* Dallas clock registers */
  1440. + __u32 _unused8[50];
  1441. + volatile __u32 bbram[8192-50-14]; /* Battery backed ram */
  1442. };
  1443. /*
  1444. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sgi/ioc.h linux-libc-headers-2.6.8.0/include/asm-mips/sgi/ioc.h
  1445. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sgi/ioc.h 2004-03-28 07:51:54.000000000 -0600
  1446. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sgi/ioc.h 2004-08-26 05:24:48.000000000 -0500
  1447. @@ -22,26 +22,26 @@
  1448. */
  1449. struct sgioc_uart_regs {
  1450. - u8 _ctrl1[3];
  1451. - volatile u8 ctrl1;
  1452. - u8 _data1[3];
  1453. - volatile u8 data1;
  1454. - u8 _ctrl2[3];
  1455. - volatile u8 ctrl2;
  1456. - u8 _data2[3];
  1457. - volatile u8 data2;
  1458. + __u8 _ctrl1[3];
  1459. + volatile __u8 ctrl1;
  1460. + __u8 _data1[3];
  1461. + volatile __u8 data1;
  1462. + __u8 _ctrl2[3];
  1463. + volatile __u8 ctrl2;
  1464. + __u8 _data2[3];
  1465. + volatile __u8 data2;
  1466. };
  1467. struct sgioc_keyb_regs {
  1468. - u8 _data[3];
  1469. - volatile u8 data;
  1470. - u8 _command[3];
  1471. - volatile u8 command;
  1472. + __u8 _data[3];
  1473. + volatile __u8 data;
  1474. + __u8 _command[3];
  1475. + volatile __u8 command;
  1476. };
  1477. struct sgint_regs {
  1478. - u8 _istat0[3];
  1479. - volatile u8 istat0; /* Interrupt status zero */
  1480. + __u8 _istat0[3];
  1481. + volatile __u8 istat0; /* Interrupt status zero */
  1482. #define SGINT_ISTAT0_FFULL 0x01
  1483. #define SGINT_ISTAT0_SCSI0 0x02
  1484. #define SGINT_ISTAT0_SCSI1 0x04
  1485. @@ -50,10 +50,10 @@
  1486. #define SGINT_ISTAT0_PPORT 0x20
  1487. #define SGINT_ISTAT0_HPC2 0x40
  1488. #define SGINT_ISTAT0_LIO2 0x80
  1489. - u8 _imask0[3];
  1490. - volatile u8 imask0; /* Interrupt mask zero */
  1491. - u8 _istat1[3];
  1492. - volatile u8 istat1; /* Interrupt status one */
  1493. + __u8 _imask0[3];
  1494. + volatile __u8 imask0; /* Interrupt mask zero */
  1495. + __u8 _istat1[3];
  1496. + volatile __u8 istat1; /* Interrupt status one */
  1497. #define SGINT_ISTAT1_ISDNI 0x01
  1498. #define SGINT_ISTAT1_PWR 0x02
  1499. #define SGINT_ISTAT1_ISDNH 0x04
  1500. @@ -62,29 +62,29 @@
  1501. #define SGINT_ISTAT1_AFAIL 0x20
  1502. #define SGINT_ISTAT1_VIDEO 0x40
  1503. #define SGINT_ISTAT1_GIO2 0x80
  1504. - u8 _imask1[3];
  1505. - volatile u8 imask1; /* Interrupt mask one */
  1506. - u8 _vmeistat[3];
  1507. - volatile u8 vmeistat; /* VME interrupt status */
  1508. - u8 _cmeimask0[3];
  1509. - volatile u8 cmeimask0; /* VME interrupt mask zero */
  1510. - u8 _cmeimask1[3];
  1511. - volatile u8 cmeimask1; /* VME interrupt mask one */
  1512. - u8 _cmepol[3];
  1513. - volatile u8 cmepol; /* VME polarity */
  1514. - u8 _tclear[3];
  1515. - volatile u8 tclear;
  1516. - u8 _errstat[3];
  1517. - volatile u8 errstat; /* Error status reg, reserved on INT2 */
  1518. - u32 _unused0[2];
  1519. - u8 _tcnt0[3];
  1520. - volatile u8 tcnt0; /* counter 0 */
  1521. - u8 _tcnt1[3];
  1522. - volatile u8 tcnt1; /* counter 1 */
  1523. - u8 _tcnt2[3];
  1524. - volatile u8 tcnt2; /* counter 2 */
  1525. - u8 _tcword[3];
  1526. - volatile u8 tcword; /* control word */
  1527. + __u8 _imask1[3];
  1528. + volatile __u8 imask1; /* Interrupt mask one */
  1529. + __u8 _vmeistat[3];
  1530. + volatile __u8 vmeistat; /* VME interrupt status */
  1531. + __u8 _cmeimask0[3];
  1532. + volatile __u8 cmeimask0; /* VME interrupt mask zero */
  1533. + __u8 _cmeimask1[3];
  1534. + volatile __u8 cmeimask1; /* VME interrupt mask one */
  1535. + __u8 _cmepol[3];
  1536. + volatile __u8 cmepol; /* VME polarity */
  1537. + __u8 _tclear[3];
  1538. + volatile __u8 tclear;
  1539. + __u8 _errstat[3];
  1540. + volatile __u8 errstat; /* Error status reg, reserved on INT2 */
  1541. + __u32 _unused0[2];
  1542. + __u8 _tcnt0[3];
  1543. + volatile __u8 tcnt0; /* counter 0 */
  1544. + __u8 _tcnt1[3];
  1545. + volatile __u8 tcnt1; /* counter 1 */
  1546. + __u8 _tcnt2[3];
  1547. + volatile __u8 tcnt2; /* counter 2 */
  1548. + __u8 _tcword[3];
  1549. + volatile __u8 tcword; /* control word */
  1550. #define SGINT_TCWORD_BCD 0x01 /* Use BCD mode for counters */
  1551. #define SGINT_TCWORD_MMASK 0x0e /* Mode bitmask. */
  1552. #define SGINT_TCWORD_MITC 0x00 /* IRQ on terminal count (doesn't work) */
  1553. @@ -115,55 +115,55 @@
  1554. #define SGINT_TCSAMP_COUNTER ((SGINT_TIMER_CLOCK / HZ) + 255)
  1555. /* We need software copies of these because they are write only. */
  1556. -extern u8 sgi_ioc_reset, sgi_ioc_write;
  1557. +extern __u8 sgi_ioc_reset, sgi_ioc_write;
  1558. struct sgioc_regs {
  1559. struct pi1_regs pport;
  1560. - u32 _unused0[2];
  1561. + __u32 _unused0[2];
  1562. struct sgioc_uart_regs serport;
  1563. struct sgioc_keyb_regs kbdmouse;
  1564. - u8 _gcsel[3];
  1565. - volatile u8 gcsel;
  1566. - u8 _genctrl[3];
  1567. - volatile u8 genctrl;
  1568. - u8 _panel[3];
  1569. - volatile u8 panel;
  1570. + __u8 _gcsel[3];
  1571. + volatile __u8 gcsel;
  1572. + __u8 _genctrl[3];
  1573. + volatile __u8 genctrl;
  1574. + __u8 _panel[3];
  1575. + volatile __u8 panel;
  1576. #define SGIOC_PANEL_POWERON 0x01
  1577. #define SGIOC_PANEL_POWERINTR 0x02
  1578. #define SGIOC_PANEL_VOLDNINTR 0x10
  1579. #define SGIOC_PANEL_VOLDNHOLD 0x20
  1580. #define SGIOC_PANEL_VOLUPINTR 0x40
  1581. #define SGIOC_PANEL_VOLUPHOLD 0x80
  1582. - u32 _unused1;
  1583. - u8 _sysid[3];
  1584. - volatile u8 sysid;
  1585. + __u32 _unused1;
  1586. + __u8 _sysid[3];
  1587. + volatile __u8 sysid;
  1588. #define SGIOC_SYSID_FULLHOUSE 0x01
  1589. #define SGIOC_SYSID_BOARDREV(x) ((x & 0xe0) > 5)
  1590. #define SGIOC_SYSID_CHIPREV(x) ((x & 0x1e) > 1)
  1591. - u32 _unused2;
  1592. - u8 _read[3];
  1593. - volatile u8 read;
  1594. - u32 _unused3;
  1595. - u8 _dmasel[3];
  1596. - volatile u8 dmasel;
  1597. + __u32 _unused2;
  1598. + __u8 _read[3];
  1599. + volatile __u8 read;
  1600. + __u32 _unused3;
  1601. + __u8 _dmasel[3];
  1602. + volatile __u8 dmasel;
  1603. #define SGIOC_DMASEL_SCLK10MHZ 0x00 /* use 10MHZ serial clock */
  1604. #define SGIOC_DMASEL_ISDNB 0x01 /* enable isdn B */
  1605. #define SGIOC_DMASEL_ISDNA 0x02 /* enable isdn A */
  1606. #define SGIOC_DMASEL_PPORT 0x04 /* use parallel DMA */
  1607. #define SGIOC_DMASEL_SCLK667MHZ 0x10 /* use 6.67MHZ serial clock */
  1608. #define SGIOC_DMASEL_SCLKEXT 0x20 /* use external serial clock */
  1609. - u32 _unused4;
  1610. - u8 _reset[3];
  1611. - volatile u8 reset;
  1612. + __u32 _unused4;
  1613. + __u8 _reset[3];
  1614. + volatile __u8 reset;
  1615. #define SGIOC_RESET_PPORT 0x01 /* 0=parport reset, 1=nornal */
  1616. #define SGIOC_RESET_KBDMOUSE 0x02 /* 0=kbdmouse reset, 1=normal */
  1617. #define SGIOC_RESET_EISA 0x04 /* 0=eisa reset, 1=normal */
  1618. #define SGIOC_RESET_ISDN 0x08 /* 0=isdn reset, 1=normal */
  1619. #define SGIOC_RESET_LC0OFF 0x10 /* guiness: turn led off (red, else green) */
  1620. #define SGIOC_RESET_LC1OFF 0x20 /* guiness: turn led off (green, else amber) */
  1621. - u32 _unused5;
  1622. - u8 _write[3];
  1623. - volatile u8 write;
  1624. + __u32 _unused5;
  1625. + __u8 _write[3];
  1626. + volatile __u8 write;
  1627. #define SGIOC_WRITE_NTHRESH 0x01 /* use 4.5db threshhold */
  1628. #define SGIOC_WRITE_TPSPEED 0x02 /* use 100ohm TP speed */
  1629. #define SGIOC_WRITE_EPSEL 0x04 /* force cable mode: 1=AUI 0=TP */
  1630. @@ -172,10 +172,10 @@
  1631. #define SGIOC_WRITE_U0AMODE 0x20 /* 1=PC 0=MAC UART mode */
  1632. #define SGIOC_WRITE_MLO 0x40 /* 1=4.75V 0=+5V */
  1633. #define SGIOC_WRITE_MHI 0x80 /* 1=5.25V 0=+5V */
  1634. - u32 _unused6;
  1635. + __u32 _unused6;
  1636. struct sgint_regs int3;
  1637. - u32 _unused7[16];
  1638. - volatile u32 extio; /* FullHouse only */
  1639. + __u32 _unused7[16];
  1640. + volatile __u32 extio; /* FullHouse only */
  1641. #define EXTIO_S0_IRQ_3 0x8000 /* S0: vid.vsync */
  1642. #define EXTIO_S0_IRQ_2 0x4000 /* S0: gfx.fifofull */
  1643. #define EXTIO_S0_IRQ_1 0x2000 /* S0: gfx.int */
  1644. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sgi/mc.h linux-libc-headers-2.6.8.0/include/asm-mips/sgi/mc.h
  1645. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sgi/mc.h 2003-12-15 12:47:03.000000000 -0600
  1646. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sgi/mc.h 2004-08-26 05:25:28.000000000 -0500
  1647. @@ -14,8 +14,8 @@
  1648. #define _SGI_MC_H
  1649. struct sgimc_regs {
  1650. - u32 _unused0;
  1651. - volatile u32 cpuctrl0; /* CPU control register 0, readwrite */
  1652. + __u32 _unused0;
  1653. + volatile __u32 cpuctrl0; /* CPU control register 0, readwrite */
  1654. #define SGIMC_CCTRL0_REFS 0x0000000f /* REFS mask */
  1655. #define SGIMC_CCTRL0_EREFRESH 0x00000010 /* Memory refresh enable */
  1656. #define SGIMC_CCTRL0_EPERRGIO 0x00000020 /* GIO parity error enable */
  1657. @@ -35,8 +35,8 @@
  1658. #define SGIMC_CCTRL0_CMEMBADPAR 0x02000000 /* Generate bad perr from cpu to mem */
  1659. #define SGIMC_CCTRL0_R4KNOCHKPARR 0x04000000 /* Don't chk parity on mem data reads */
  1660. #define SGIMC_CCTRL0_GIOBTOB 0x08000000 /* Allow GIO back to back writes */
  1661. - u32 _unused1;
  1662. - volatile u32 cpuctrl1; /* CPU control register 1, readwrite */
  1663. + __u32 _unused1;
  1664. + volatile __u32 cpuctrl1; /* CPU control register 1, readwrite */
  1665. #define SGIMC_CCTRL1_EGIOTIMEO 0x00000010 /* GIO bus timeout enable */
  1666. #define SGIMC_CCTRL1_FIXEDEHPC 0x00001000 /* Fixed HPC endianness */
  1667. #define SGIMC_CCTRL1_LITTLEHPC 0x00002000 /* Little endian HPC */
  1668. @@ -45,33 +45,33 @@
  1669. #define SGIMC_CCTRL1_FIXEDEEXP1 0x00010000 /* Fixed EXP1 endianness */
  1670. #define SGIMC_CCTRL1_LITTLEEXP1 0x00020000 /* Little endian EXP1 */
  1671. - u32 _unused2;
  1672. - volatile u32 watchdogt; /* Watchdog reg rdonly, write clears */
  1673. + __u32 _unused2;
  1674. + volatile __u32 watchdogt; /* Watchdog reg rdonly, write clears */
  1675. - u32 _unused3;
  1676. - volatile u32 systemid; /* MC system ID register, readonly */
  1677. + __u32 _unused3;
  1678. + volatile __u32 systemid; /* MC system ID register, readonly */
  1679. #define SGIMC_SYSID_MASKREV 0x0000000f /* Revision of MC controller */
  1680. #define SGIMC_SYSID_EPRESENT 0x00000010 /* Indicates presence of EISA bus */
  1681. - u32 _unused4[3];
  1682. - volatile u32 divider; /* Divider reg for RPSS */
  1683. + __u32 _unused4[3];
  1684. + volatile __u32 divider; /* Divider reg for RPSS */
  1685. - u32 _unused5;
  1686. - volatile u32 eeprom; /* EEPROM byte reg for r4k */
  1687. + __u32 _unused5;
  1688. + volatile __u32 eeprom; /* EEPROM byte reg for r4k */
  1689. #define SGIMC_EEPROM_PRE 0x00000001 /* eeprom chip PRE pin assertion */
  1690. #define SGIMC_EEPROM_CSEL 0x00000002 /* Active high, eeprom chip select */
  1691. #define SGIMC_EEPROM_SECLOCK 0x00000004 /* EEPROM serial clock */
  1692. #define SGIMC_EEPROM_SDATAO 0x00000008 /* Serial EEPROM data-out */
  1693. #define SGIMC_EEPROM_SDATAI 0x00000010 /* Serial EEPROM data-in */
  1694. - u32 _unused6[3];
  1695. - volatile u32 rcntpre; /* Preload refresh counter */
  1696. + __u32 _unused6[3];
  1697. + volatile __u32 rcntpre; /* Preload refresh counter */
  1698. - u32 _unused7;
  1699. - volatile u32 rcounter; /* Readonly refresh counter */
  1700. + __u32 _unused7;
  1701. + volatile __u32 rcounter; /* Readonly refresh counter */
  1702. - u32 _unused8[13];
  1703. - volatile u32 giopar; /* Parameter word for GIO64 */
  1704. + __u32 _unused8[13];
  1705. + volatile __u32 giopar; /* Parameter word for GIO64 */
  1706. #define SGIMC_GIOPAR_HPC64 0x00000001 /* HPC talks to GIO using 64-bits */
  1707. #define SGIMC_GIOPAR_GFX64 0x00000002 /* GFX talks to GIO using 64-bits */
  1708. #define SGIMC_GIOPAR_EXP064 0x00000004 /* EXP(slot0) talks using 64-bits */
  1709. @@ -89,36 +89,36 @@
  1710. #define SGIMC_GIOPAR_PLINEEXP0 0x00004000 /* EXP(slot0) has pipeline attr */
  1711. #define SGIMC_GIOPAR_PLINEEXP1 0x00008000 /* EXP(slot1) has pipeline attr */
  1712. - u32 _unused9;
  1713. - volatile u32 cputp; /* CPU bus arb time period */
  1714. + __u32 _unused9;
  1715. + volatile __u32 cputp; /* CPU bus arb time period */
  1716. - u32 _unused10[3];
  1717. - volatile u32 lbursttp; /* Time period for long bursts */
  1718. + __u32 _unused10[3];
  1719. + volatile __u32 lbursttp; /* Time period for long bursts */
  1720. /* MC chip can drive up to 4 bank 4 SIMMs each. All SIMMs in bank must
  1721. * be the same size. The size encoding for supported SIMMs is bellow */
  1722. - u32 _unused11[9];
  1723. - volatile u32 mconfig0; /* Memory config register zero */
  1724. - u32 _unused12;
  1725. - volatile u32 mconfig1; /* Memory config register one */
  1726. + __u32 _unused11[9];
  1727. + volatile __u32 mconfig0; /* Memory config register zero */
  1728. + __u32 _unused12;
  1729. + volatile __u32 mconfig1; /* Memory config register one */
  1730. #define SGIMC_MCONFIG_BASEADDR 0x000000ff /* Base address of bank*/
  1731. #define SGIMC_MCONFIG_RMASK 0x00001f00 /* Ram config bitmask */
  1732. #define SGIMC_MCONFIG_BVALID 0x00002000 /* Bank is valid */
  1733. #define SGIMC_MCONFIG_SBANKS 0x00004000 /* Number of subbanks */
  1734. - u32 _unused13;
  1735. - volatile u32 cmacc; /* Mem access config for CPU */
  1736. - u32 _unused14;
  1737. - volatile u32 gmacc; /* Mem access config for GIO */
  1738. + __u32 _unused13;
  1739. + volatile __u32 cmacc; /* Mem access config for CPU */
  1740. + __u32 _unused14;
  1741. + volatile __u32 gmacc; /* Mem access config for GIO */
  1742. /* This define applies to both cmacc and gmacc registers above. */
  1743. #define SGIMC_MACC_ALIASBIG 0x20000000 /* 512MB home for alias */
  1744. /* Error address/status regs from GIO and CPU perspectives. */
  1745. - u32 _unused15;
  1746. - volatile u32 cerr; /* Error address reg for CPU */
  1747. - u32 _unused16;
  1748. - volatile u32 cstat; /* Status reg for CPU */
  1749. + __u32 _unused15;
  1750. + volatile __u32 cerr; /* Error address reg for CPU */
  1751. + __u32 _unused16;
  1752. + volatile __u32 cstat; /* Status reg for CPU */
  1753. #define SGIMC_CSTAT_RD 0x00000100 /* read parity error */
  1754. #define SGIMC_CSTAT_PAR 0x00000200 /* CPU parity error */
  1755. #define SGIMC_CSTAT_ADDR 0x00000400 /* memory bus error bad addr */
  1756. @@ -128,10 +128,10 @@
  1757. #define SGIMC_CSTAT_PAR_MASK 0x00001f00 /* parity error mask */
  1758. #define SGIMC_CSTAT_RD_PAR (SGIMC_CSTAT_RD | SGIMC_CSTAT_PAR)
  1759. - u32 _unused17;
  1760. - volatile u32 gerr; /* Error address reg for GIO */
  1761. - u32 _unused18;
  1762. - volatile u32 gstat; /* Status reg for GIO */
  1763. + __u32 _unused17;
  1764. + volatile __u32 gerr; /* Error address reg for GIO */
  1765. + __u32 _unused18;
  1766. + volatile __u32 gstat; /* Status reg for GIO */
  1767. #define SGIMC_GSTAT_RD 0x00000100 /* read parity error */
  1768. #define SGIMC_GSTAT_WR 0x00000200 /* write parity error */
  1769. #define SGIMC_GSTAT_TIME 0x00000400 /* GIO bus timed out */
  1770. @@ -142,76 +142,76 @@
  1771. #define SGIMC_GSTAT_PIO_WR 0x00008000 /* write data parity on pio */
  1772. /* Special hard bus locking registers. */
  1773. - u32 _unused19;
  1774. - volatile u32 syssembit; /* Uni-bit system semaphore */
  1775. - u32 _unused20;
  1776. - volatile u32 mlock; /* Global GIO memory access lock */
  1777. - u32 _unused21;
  1778. - volatile u32 elock; /* Locks EISA from GIO accesses */
  1779. + __u32 _unused19;
  1780. + volatile __u32 syssembit; /* Uni-bit system semaphore */
  1781. + __u32 _unused20;
  1782. + volatile __u32 mlock; /* Global GIO memory access lock */
  1783. + __u32 _unused21;
  1784. + volatile __u32 elock; /* Locks EISA from GIO accesses */
  1785. /* GIO dma control registers. */
  1786. - u32 _unused22[15];
  1787. - volatile u32 gio_dma_trans; /* DMA mask to translation GIO addrs */
  1788. - u32 _unused23;
  1789. - volatile u32 gio_dma_sbits; /* DMA GIO addr substitution bits */
  1790. - u32 _unused24;
  1791. - volatile u32 dma_intr_cause; /* DMA IRQ cause indicator bits */
  1792. - u32 _unused25;
  1793. - volatile u32 dma_ctrl; /* Main DMA control reg */
  1794. + __u32 _unused22[15];
  1795. + volatile __u32 gio_dma_trans; /* DMA mask to translation GIO addrs */
  1796. + __u32 _unused23;
  1797. + volatile __u32 gio_dma_sbits; /* DMA GIO addr substitution bits */
  1798. + __u32 _unused24;
  1799. + volatile __u32 dma_intr_cause; /* DMA IRQ cause indicator bits */
  1800. + __u32 _unused25;
  1801. + volatile __u32 dma_ctrl; /* Main DMA control reg */
  1802. /* DMA TLB entry 0 */
  1803. - u32 _unused26[5];
  1804. - volatile u32 dtlb_hi0;
  1805. - u32 _unused27;
  1806. - volatile u32 dtlb_lo0;
  1807. + __u32 _unused26[5];
  1808. + volatile __u32 dtlb_hi0;
  1809. + __u32 _unused27;
  1810. + volatile __u32 dtlb_lo0;
  1811. /* DMA TLB entry 1 */
  1812. - u32 _unused28;
  1813. - volatile u32 dtlb_hi1;
  1814. - u32 _unused29;
  1815. - volatile u32 dtlb_lo1;
  1816. + __u32 _unused28;
  1817. + volatile __u32 dtlb_hi1;
  1818. + __u32 _unused29;
  1819. + volatile __u32 dtlb_lo1;
  1820. /* DMA TLB entry 2 */
  1821. - u32 _unused30;
  1822. - volatile u32 dtlb_hi2;
  1823. - u32 _unused31;
  1824. - volatile u32 dtlb_lo2;
  1825. + __u32 _unused30;
  1826. + volatile __u32 dtlb_hi2;
  1827. + __u32 _unused31;
  1828. + volatile __u32 dtlb_lo2;
  1829. /* DMA TLB entry 3 */
  1830. - u32 _unused32;
  1831. - volatile u32 dtlb_hi3;
  1832. - u32 _unused33;
  1833. - volatile u32 dtlb_lo3;
  1834. + __u32 _unused32;
  1835. + volatile __u32 dtlb_hi3;
  1836. + __u32 _unused33;
  1837. + volatile __u32 dtlb_lo3;
  1838. - u32 _unused34[0x0392];
  1839. + __u32 _unused34[0x0392];
  1840. - u32 _unused35;
  1841. - volatile u32 rpsscounter; /* Chirps at 100ns */
  1842. + __u32 _unused35;
  1843. + volatile __u32 rpsscounter; /* Chirps at 100ns */
  1844. - u32 _unused36[0x1000/4-2*4];
  1845. + __u32 _unused36[0x1000/4-2*4];
  1846. - u32 _unused37;
  1847. - volatile u32 maddronly; /* Address DMA goes at */
  1848. - u32 _unused38;
  1849. - volatile u32 maddrpdeflts; /* Same as above, plus set defaults */
  1850. - u32 _unused39;
  1851. - volatile u32 dmasz; /* DMA count */
  1852. - u32 _unused40;
  1853. - volatile u32 ssize; /* DMA stride size */
  1854. - u32 _unused41;
  1855. - volatile u32 gmaddronly; /* Set GIO DMA but don't start trans */
  1856. - u32 _unused42;
  1857. - volatile u32 dmaddnpgo; /* Set GIO DMA addr + start transfer */
  1858. - u32 _unused43;
  1859. - volatile u32 dmamode; /* DMA mode config bit settings */
  1860. - u32 _unused44;
  1861. - volatile u32 dmaccount; /* Zoom and byte count for DMA */
  1862. - u32 _unused45;
  1863. - volatile u32 dmastart; /* Pedal to the metal. */
  1864. - u32 _unused46;
  1865. - volatile u32 dmarunning; /* DMA op is in progress */
  1866. - u32 _unused47;
  1867. - volatile u32 maddrdefstart; /* Set dma addr, defaults, and kick it */
  1868. + __u32 _unused37;
  1869. + volatile __u32 maddronly; /* Address DMA goes at */
  1870. + __u32 _unused38;
  1871. + volatile __u32 maddrpdeflts; /* Same as above, plus set defaults */
  1872. + __u32 _unused39;
  1873. + volatile __u32 dmasz; /* DMA count */
  1874. + __u32 _unused40;
  1875. + volatile __u32 ssize; /* DMA stride size */
  1876. + __u32 _unused41;
  1877. + volatile __u32 gmaddronly; /* Set GIO DMA but don't start trans */
  1878. + __u32 _unused42;
  1879. + volatile __u32 dmaddnpgo; /* Set GIO DMA addr + start transfer */
  1880. + __u32 _unused43;
  1881. + volatile __u32 dmamode; /* DMA mode config bit settings */
  1882. + __u32 _unused44;
  1883. + volatile __u32 dmaccount; /* Zoom and byte count for DMA */
  1884. + __u32 _unused45;
  1885. + volatile __u32 dmastart; /* Pedal to the metal. */
  1886. + __u32 _unused46;
  1887. + volatile __u32 dmarunning; /* DMA op is in progress */
  1888. + __u32 _unused47;
  1889. + volatile __u32 maddrdefstart; /* Set dma addr, defaults, and kick it */
  1890. };
  1891. extern struct sgimc_regs *sgimc;
  1892. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sgiarcs.h linux-libc-headers-2.6.8.0/include/asm-mips/sgiarcs.h
  1893. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sgiarcs.h 2004-03-28 07:51:52.000000000 -0600
  1894. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sgiarcs.h 2004-08-26 05:21:53.000000000 -0500
  1895. @@ -164,11 +164,11 @@
  1896. /* This prom has a bolixed design. */
  1897. struct linux_bigint {
  1898. #ifdef __MIPSEL__
  1899. - u32 lo;
  1900. - s32 hi;
  1901. + __u32 lo;
  1902. + __s32 hi;
  1903. #else /* !(__MIPSEL__) */
  1904. - s32 hi;
  1905. - u32 lo;
  1906. + __s32 hi;
  1907. + __u32 lo;
  1908. #endif
  1909. };
  1910. @@ -366,7 +366,7 @@
  1911. * Macros for calling a 32-bit ARC implementation from 64-bit code
  1912. */
  1913. -#if defined(CONFIG_MIPS64) && defined(CONFIG_ARC32)
  1914. +#if defined(__mips64) && defined(CONFIG_ARC32)
  1915. #define __arc_clobbers \
  1916. "$2","$3" /* ... */, "$8","$9","$10","$11", \
  1917. @@ -475,10 +475,10 @@
  1918. __res; \
  1919. })
  1920. -#endif /* defined(CONFIG_MIPS64) && defined(CONFIG_ARC32) */
  1921. +#endif /* defined(__mips64) && defined(CONFIG_ARC32) */
  1922. -#if (defined(CONFIG_MIPS32) && defined(CONFIG_ARC32)) || \
  1923. - (defined(CONFIG_MIPS64) && defined(CONFIG_ARC64))
  1924. +#if (!defined(__mips64) && defined(CONFIG_ARC32)) || \
  1925. + (defined(__mips64) && defined(CONFIG_ARC64))
  1926. #define ARC_CALL0(dest) \
  1927. ({ long __res; \
  1928. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/siginfo.h linux-libc-headers-2.6.8.0/include/asm-mips/siginfo.h
  1929. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/siginfo.h 2004-06-09 07:00:41.000000000 -0500
  1930. +++ linux-libc-headers-2.6.8.0/include/asm-mips/siginfo.h 2004-08-26 05:14:41.000000000 -0500
  1931. @@ -66,10 +66,10 @@
  1932. /* SIGPOLL, SIGXFSZ (To do ...) */
  1933. struct {
  1934. -#ifdef CONFIG_MIPS32
  1935. +#ifndef __mips64
  1936. int _band; /* POLL_IN, POLL_OUT, POLL_MSG */
  1937. #endif
  1938. -#ifdef CONFIG_MIPS64
  1939. +#ifdef __mips64
  1940. long _band; /* POLL_IN, POLL_OUT, POLL_MSG */
  1941. #endif
  1942. int _fd;
  1943. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sim.h linux-libc-headers-2.6.8.0/include/asm-mips/sim.h
  1944. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sim.h 2004-03-28 07:51:52.000000000 -0600
  1945. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sim.h 2004-08-26 05:17:16.000000000 -0500
  1946. @@ -18,7 +18,7 @@
  1947. #define __str2(x) #x
  1948. #define __str(x) __str2(x)
  1949. -#ifdef CONFIG_MIPS32
  1950. +#ifndef __mips64
  1951. #define save_static_function(symbol) \
  1952. __asm__ ( \
  1953. @@ -43,9 +43,9 @@
  1954. #define nabi_no_regargs
  1955. -#endif /* CONFIG_MIPS32 */
  1956. +#endif /* ndef __mips64 */
  1957. -#ifdef CONFIG_MIPS64
  1958. +#ifdef __mips64
  1959. #define save_static_function(symbol) \
  1960. __asm__ ( \
  1961. @@ -78,6 +78,6 @@
  1962. unsigned long __dummy6, \
  1963. unsigned long __dummy7,
  1964. -#endif /* CONFIG_MIPS64 */
  1965. +#endif /* __mips64 */
  1966. #endif /* _ASM_SIM_H */
  1967. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/arch.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/arch.h
  1968. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/arch.h 2004-06-09 07:00:42.000000000 -0500
  1969. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/arch.h 2004-08-26 05:26:16.000000000 -0500
  1970. @@ -17,8 +17,8 @@
  1971. #include <asm/sn/sn0/arch.h>
  1972. #endif
  1973. -typedef u64 hubreg_t;
  1974. -typedef u64 nic_t;
  1975. +typedef __u64 hubreg_t;
  1976. +typedef __u64 nic_t;
  1977. #define cputonasid(cpu) (cpu_data[(cpu)].p_nasid)
  1978. #define cputoslice(cpu) (cpu_data[(cpu)].p_slice)
  1979. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/gda.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/gda.h
  1980. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/gda.h 2003-12-15 12:47:02.000000000 -0600
  1981. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/gda.h 2004-08-26 05:26:30.000000000 -0500
  1982. @@ -44,11 +44,11 @@
  1983. #ifndef __ASSEMBLY__
  1984. typedef struct gda {
  1985. - u32 g_magic; /* GDA magic number */
  1986. - u16 g_version; /* Version of this structure */
  1987. - u16 g_masterid; /* The NASID:CPUNUM of the master cpu */
  1988. - u32 g_promop; /* Passes requests from the kernel to prom */
  1989. - u32 g_vds; /* Store the virtual dipswitches here */
  1990. + __u32 g_magic; /* GDA magic number */
  1991. + __u16 g_version; /* Version of this structure */
  1992. + __u16 g_masterid; /* The NASID:CPUNUM of the master cpu */
  1993. + __u32 g_promop; /* Passes requests from the kernel to prom */
  1994. + __u32 g_vds; /* Store the virtual dipswitches here */
  1995. void **g_hooked_norm;/* ptr to pda loc for norm hndlr */
  1996. void **g_hooked_utlb;/* ptr to pda loc for utlb hndlr */
  1997. void **g_hooked_xtlb;/* ptr to pda loc for xtlb hndlr */
  1998. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/ioc3.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/ioc3.h
  1999. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/ioc3.h 2003-12-15 12:47:02.000000000 -0600
  2000. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/ioc3.h 2004-08-26 05:26:06.000000000 -0500
  2001. @@ -8,23 +8,23 @@
  2002. /* SUPERIO uart register map */
  2003. typedef volatile struct ioc3_uartregs {
  2004. union {
  2005. - volatile u8 rbr; /* read only, DLAB == 0 */
  2006. - volatile u8 thr; /* write only, DLAB == 0 */
  2007. - volatile u8 dll; /* DLAB == 1 */
  2008. + volatile __u8 rbr; /* read only, DLAB == 0 */
  2009. + volatile __u8 thr; /* write only, DLAB == 0 */
  2010. + volatile __u8 dll; /* DLAB == 1 */
  2011. } u1;
  2012. union {
  2013. - volatile u8 ier; /* DLAB == 0 */
  2014. - volatile u8 dlm; /* DLAB == 1 */
  2015. + volatile __u8 ier; /* DLAB == 0 */
  2016. + volatile __u8 dlm; /* DLAB == 1 */
  2017. } u2;
  2018. union {
  2019. - volatile u8 iir; /* read only */
  2020. - volatile u8 fcr; /* write only */
  2021. + volatile __u8 iir; /* read only */
  2022. + volatile __u8 fcr; /* write only */
  2023. } u3;
  2024. - volatile u8 iu_lcr;
  2025. - volatile u8 iu_mcr;
  2026. - volatile u8 iu_lsr;
  2027. - volatile u8 iu_msr;
  2028. - volatile u8 iu_scr;
  2029. + volatile __u8 iu_lcr;
  2030. + volatile __u8 iu_mcr;
  2031. + volatile __u8 iu_lsr;
  2032. + volatile __u8 iu_msr;
  2033. + volatile __u8 iu_scr;
  2034. } ioc3_uregs_t;
  2035. #define iu_rbr u1.rbr
  2036. @@ -36,29 +36,29 @@
  2037. #define iu_fcr u3.fcr
  2038. struct ioc3_sioregs {
  2039. - volatile u8 fill[0x141]; /* starts at 0x141 */
  2040. + volatile __u8 fill[0x141]; /* starts at 0x141 */
  2041. - volatile u8 uartc;
  2042. - volatile u8 kbdcg;
  2043. + volatile __u8 uartc;
  2044. + volatile __u8 kbdcg;
  2045. - volatile u8 fill0[0x150 - 0x142 - 1];
  2046. + volatile __u8 fill0[0x150 - 0x142 - 1];
  2047. - volatile u8 pp_data;
  2048. - volatile u8 pp_dsr;
  2049. - volatile u8 pp_dcr;
  2050. + volatile __u8 pp_data;
  2051. + volatile __u8 pp_dsr;
  2052. + volatile __u8 pp_dcr;
  2053. - volatile u8 fill1[0x158 - 0x152 - 1];
  2054. + volatile __u8 fill1[0x158 - 0x152 - 1];
  2055. - volatile u8 pp_fifa;
  2056. - volatile u8 pp_cfgb;
  2057. - volatile u8 pp_ecr;
  2058. + volatile __u8 pp_fifa;
  2059. + volatile __u8 pp_cfgb;
  2060. + volatile __u8 pp_ecr;
  2061. - volatile u8 fill2[0x168 - 0x15a - 1];
  2062. + volatile __u8 fill2[0x168 - 0x15a - 1];
  2063. - volatile u8 rtcad;
  2064. - volatile u8 rtcdat;
  2065. + volatile __u8 rtcad;
  2066. + volatile __u8 rtcdat;
  2067. - volatile u8 fill3[0x170 - 0x169 - 1];
  2068. + volatile __u8 fill3[0x170 - 0x169 - 1];
  2069. struct ioc3_uartregs uartb; /* 0x20170 */
  2070. struct ioc3_uartregs uarta; /* 0x20178 */
  2071. @@ -66,103 +66,103 @@
  2072. /* Register layout of IOC3 in configuration space. */
  2073. struct ioc3 {
  2074. - volatile u32 pad0[7]; /* 0x00000 */
  2075. - volatile u32 sio_ir; /* 0x0001c */
  2076. - volatile u32 sio_ies; /* 0x00020 */
  2077. - volatile u32 sio_iec; /* 0x00024 */
  2078. - volatile u32 sio_cr; /* 0x00028 */
  2079. - volatile u32 int_out; /* 0x0002c */
  2080. - volatile u32 mcr; /* 0x00030 */
  2081. + volatile __u32 pad0[7]; /* 0x00000 */
  2082. + volatile __u32 sio_ir; /* 0x0001c */
  2083. + volatile __u32 sio_ies; /* 0x00020 */
  2084. + volatile __u32 sio_iec; /* 0x00024 */
  2085. + volatile __u32 sio_cr; /* 0x00028 */
  2086. + volatile __u32 int_out; /* 0x0002c */
  2087. + volatile __u32 mcr; /* 0x00030 */
  2088. /* General Purpose I/O registers */
  2089. - volatile u32 gpcr_s; /* 0x00034 */
  2090. - volatile u32 gpcr_c; /* 0x00038 */
  2091. - volatile u32 gpdr; /* 0x0003c */
  2092. - volatile u32 gppr_0; /* 0x00040 */
  2093. - volatile u32 gppr_1; /* 0x00044 */
  2094. - volatile u32 gppr_2; /* 0x00048 */
  2095. - volatile u32 gppr_3; /* 0x0004c */
  2096. - volatile u32 gppr_4; /* 0x00050 */
  2097. - volatile u32 gppr_5; /* 0x00054 */
  2098. - volatile u32 gppr_6; /* 0x00058 */
  2099. - volatile u32 gppr_7; /* 0x0005c */
  2100. - volatile u32 gppr_8; /* 0x00060 */
  2101. - volatile u32 gppr_9; /* 0x00064 */
  2102. - volatile u32 gppr_10; /* 0x00068 */
  2103. - volatile u32 gppr_11; /* 0x0006c */
  2104. - volatile u32 gppr_12; /* 0x00070 */
  2105. - volatile u32 gppr_13; /* 0x00074 */
  2106. - volatile u32 gppr_14; /* 0x00078 */
  2107. - volatile u32 gppr_15; /* 0x0007c */
  2108. + volatile __u32 gpcr_s; /* 0x00034 */
  2109. + volatile __u32 gpcr_c; /* 0x00038 */
  2110. + volatile __u32 gpdr; /* 0x0003c */
  2111. + volatile __u32 gppr_0; /* 0x00040 */
  2112. + volatile __u32 gppr_1; /* 0x00044 */
  2113. + volatile __u32 gppr_2; /* 0x00048 */
  2114. + volatile __u32 gppr_3; /* 0x0004c */
  2115. + volatile __u32 gppr_4; /* 0x00050 */
  2116. + volatile __u32 gppr_5; /* 0x00054 */
  2117. + volatile __u32 gppr_6; /* 0x00058 */
  2118. + volatile __u32 gppr_7; /* 0x0005c */
  2119. + volatile __u32 gppr_8; /* 0x00060 */
  2120. + volatile __u32 gppr_9; /* 0x00064 */
  2121. + volatile __u32 gppr_10; /* 0x00068 */
  2122. + volatile __u32 gppr_11; /* 0x0006c */
  2123. + volatile __u32 gppr_12; /* 0x00070 */
  2124. + volatile __u32 gppr_13; /* 0x00074 */
  2125. + volatile __u32 gppr_14; /* 0x00078 */
  2126. + volatile __u32 gppr_15; /* 0x0007c */
  2127. /* Parallel Port Registers */
  2128. - volatile u32 ppbr_h_a; /* 0x00080 */
  2129. - volatile u32 ppbr_l_a; /* 0x00084 */
  2130. - volatile u32 ppcr_a; /* 0x00088 */
  2131. - volatile u32 ppcr; /* 0x0008c */
  2132. - volatile u32 ppbr_h_b; /* 0x00090 */
  2133. - volatile u32 ppbr_l_b; /* 0x00094 */
  2134. - volatile u32 ppcr_b; /* 0x00098 */
  2135. + volatile __u32 ppbr_h_a; /* 0x00080 */
  2136. + volatile __u32 ppbr_l_a; /* 0x00084 */
  2137. + volatile __u32 ppcr_a; /* 0x00088 */
  2138. + volatile __u32 ppcr; /* 0x0008c */
  2139. + volatile __u32 ppbr_h_b; /* 0x00090 */
  2140. + volatile __u32 ppbr_l_b; /* 0x00094 */
  2141. + volatile __u32 ppcr_b; /* 0x00098 */
  2142. /* Keyboard and Mouse Registers */
  2143. - volatile u32 km_csr; /* 0x0009c */
  2144. - volatile u32 k_rd; /* 0x000a0 */
  2145. - volatile u32 m_rd; /* 0x000a4 */
  2146. - volatile u32 k_wd; /* 0x000a8 */
  2147. - volatile u32 m_wd; /* 0x000ac */
  2148. + volatile __u32 km_csr; /* 0x0009c */
  2149. + volatile __u32 k_rd; /* 0x000a0 */
  2150. + volatile __u32 m_rd; /* 0x000a4 */
  2151. + volatile __u32 k_wd; /* 0x000a8 */
  2152. + volatile __u32 m_wd; /* 0x000ac */
  2153. /* Serial Port Registers */
  2154. - volatile u32 sbbr_h; /* 0x000b0 */
  2155. - volatile u32 sbbr_l; /* 0x000b4 */
  2156. - volatile u32 sscr_a; /* 0x000b8 */
  2157. - volatile u32 stpir_a; /* 0x000bc */
  2158. - volatile u32 stcir_a; /* 0x000c0 */
  2159. - volatile u32 srpir_a; /* 0x000c4 */
  2160. - volatile u32 srcir_a; /* 0x000c8 */
  2161. - volatile u32 srtr_a; /* 0x000cc */
  2162. - volatile u32 shadow_a; /* 0x000d0 */
  2163. - volatile u32 sscr_b; /* 0x000d4 */
  2164. - volatile u32 stpir_b; /* 0x000d8 */
  2165. - volatile u32 stcir_b; /* 0x000dc */
  2166. - volatile u32 srpir_b; /* 0x000e0 */
  2167. - volatile u32 srcir_b; /* 0x000e4 */
  2168. - volatile u32 srtr_b; /* 0x000e8 */
  2169. - volatile u32 shadow_b; /* 0x000ec */
  2170. + volatile __u32 sbbr_h; /* 0x000b0 */
  2171. + volatile __u32 sbbr_l; /* 0x000b4 */
  2172. + volatile __u32 sscr_a; /* 0x000b8 */
  2173. + volatile __u32 stpir_a; /* 0x000bc */
  2174. + volatile __u32 stcir_a; /* 0x000c0 */
  2175. + volatile __u32 srpir_a; /* 0x000c4 */
  2176. + volatile __u32 srcir_a; /* 0x000c8 */
  2177. + volatile __u32 srtr_a; /* 0x000cc */
  2178. + volatile __u32 shadow_a; /* 0x000d0 */
  2179. + volatile __u32 sscr_b; /* 0x000d4 */
  2180. + volatile __u32 stpir_b; /* 0x000d8 */
  2181. + volatile __u32 stcir_b; /* 0x000dc */
  2182. + volatile __u32 srpir_b; /* 0x000e0 */
  2183. + volatile __u32 srcir_b; /* 0x000e4 */
  2184. + volatile __u32 srtr_b; /* 0x000e8 */
  2185. + volatile __u32 shadow_b; /* 0x000ec */
  2186. /* Ethernet Registers */
  2187. - volatile u32 emcr; /* 0x000f0 */
  2188. - volatile u32 eisr; /* 0x000f4 */
  2189. - volatile u32 eier; /* 0x000f8 */
  2190. - volatile u32 ercsr; /* 0x000fc */
  2191. - volatile u32 erbr_h; /* 0x00100 */
  2192. - volatile u32 erbr_l; /* 0x00104 */
  2193. - volatile u32 erbar; /* 0x00108 */
  2194. - volatile u32 ercir; /* 0x0010c */
  2195. - volatile u32 erpir; /* 0x00110 */
  2196. - volatile u32 ertr; /* 0x00114 */
  2197. - volatile u32 etcsr; /* 0x00118 */
  2198. - volatile u32 ersr; /* 0x0011c */
  2199. - volatile u32 etcdc; /* 0x00120 */
  2200. - volatile u32 ebir; /* 0x00124 */
  2201. - volatile u32 etbr_h; /* 0x00128 */
  2202. - volatile u32 etbr_l; /* 0x0012c */
  2203. - volatile u32 etcir; /* 0x00130 */
  2204. - volatile u32 etpir; /* 0x00134 */
  2205. - volatile u32 emar_h; /* 0x00138 */
  2206. - volatile u32 emar_l; /* 0x0013c */
  2207. - volatile u32 ehar_h; /* 0x00140 */
  2208. - volatile u32 ehar_l; /* 0x00144 */
  2209. - volatile u32 micr; /* 0x00148 */
  2210. - volatile u32 midr_r; /* 0x0014c */
  2211. - volatile u32 midr_w; /* 0x00150 */
  2212. - volatile u32 pad1[(0x20000 - 0x00154) / 4];
  2213. + volatile __u32 emcr; /* 0x000f0 */
  2214. + volatile __u32 eisr; /* 0x000f4 */
  2215. + volatile __u32 eier; /* 0x000f8 */
  2216. + volatile __u32 ercsr; /* 0x000fc */
  2217. + volatile __u32 erbr_h; /* 0x00100 */
  2218. + volatile __u32 erbr_l; /* 0x00104 */
  2219. + volatile __u32 erbar; /* 0x00108 */
  2220. + volatile __u32 ercir; /* 0x0010c */
  2221. + volatile __u32 erpir; /* 0x00110 */
  2222. + volatile __u32 ertr; /* 0x00114 */
  2223. + volatile __u32 etcsr; /* 0x00118 */
  2224. + volatile __u32 ersr; /* 0x0011c */
  2225. + volatile __u32 etcdc; /* 0x00120 */
  2226. + volatile __u32 ebir; /* 0x00124 */
  2227. + volatile __u32 etbr_h; /* 0x00128 */
  2228. + volatile __u32 etbr_l; /* 0x0012c */
  2229. + volatile __u32 etcir; /* 0x00130 */
  2230. + volatile __u32 etpir; /* 0x00134 */
  2231. + volatile __u32 emar_h; /* 0x00138 */
  2232. + volatile __u32 emar_l; /* 0x0013c */
  2233. + volatile __u32 ehar_h; /* 0x00140 */
  2234. + volatile __u32 ehar_l; /* 0x00144 */
  2235. + volatile __u32 micr; /* 0x00148 */
  2236. + volatile __u32 midr_r; /* 0x0014c */
  2237. + volatile __u32 midr_w; /* 0x00150 */
  2238. + volatile __u32 pad1[(0x20000 - 0x00154) / 4];
  2239. /* SuperIO Registers XXX */
  2240. struct ioc3_sioregs sregs; /* 0x20000 */
  2241. - volatile u32 pad2[(0x40000 - 0x20180) / 4];
  2242. + volatile __u32 pad2[(0x40000 - 0x20180) / 4];
  2243. /* SSRAM Diagnostic Access */
  2244. - volatile u32 ssram[(0x80000 - 0x40000) / 4];
  2245. + volatile __u32 ssram[(0x80000 - 0x40000) / 4];
  2246. /* Bytebus device offsets
  2247. 0x80000 - Access to the generic devices selected with DEV0
  2248. @@ -179,8 +179,8 @@
  2249. * Ethernet RX Buffer
  2250. */
  2251. struct ioc3_erxbuf {
  2252. - u32 w0; /* first word (valid,bcnt,cksum) */
  2253. - u32 err; /* second word various errors */
  2254. + __u32 w0; /* first word (valid,bcnt,cksum) */
  2255. + __u32 err; /* second word various errors */
  2256. /* next comes n bytes of padding */
  2257. /* then the received ethernet frame itself */
  2258. };
  2259. @@ -208,11 +208,11 @@
  2260. */
  2261. #define ETXD_DATALEN 104
  2262. struct ioc3_etxd {
  2263. - u32 cmd; /* command field */
  2264. - u32 bufcnt; /* buffer counts field */
  2265. - u64 p1; /* buffer pointer 1 */
  2266. - u64 p2; /* buffer pointer 2 */
  2267. - u8 data[ETXD_DATALEN]; /* opt. tx data */
  2268. + __u32 cmd; /* command field */
  2269. + __u32 bufcnt; /* buffer counts field */
  2270. + __u64 p1; /* buffer pointer 1 */
  2271. + __u64 p2; /* buffer pointer 2 */
  2272. + __u8 data[ETXD_DATALEN]; /* opt. tx data */
  2273. };
  2274. #define ETXD_BYTECNT_MASK 0x000007ff /* total byte count */
  2275. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/klconfig.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/klconfig.h
  2276. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/klconfig.h 2004-03-28 07:51:55.000000000 -0600
  2277. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/klconfig.h 2004-08-26 05:26:13.000000000 -0500
  2278. @@ -64,9 +64,9 @@
  2279. #define KLCFGINFO_MAGIC 0xbeedbabe
  2280. #ifdef FRUTEST
  2281. -typedef u64 klconf_off_t;
  2282. +typedef __u64 klconf_off_t;
  2283. #else
  2284. -typedef s32 klconf_off_t;
  2285. +typedef __s32 klconf_off_t;
  2286. #endif
  2287. /*
  2288. @@ -160,8 +160,8 @@
  2289. /* Functions/macros needed to use this structure */
  2290. typedef struct kl_config_hdr {
  2291. - u64 ch_magic; /* set this to KLCFGINFO_MAGIC */
  2292. - u32 ch_version; /* structure version number */
  2293. + __u64 ch_magic; /* set this to KLCFGINFO_MAGIC */
  2294. + __u32 ch_version; /* structure version number */
  2295. klconf_off_t ch_malloc_hdr_off; /* offset of ch_malloc_hdr */
  2296. klconf_off_t ch_cons_off; /* offset of ch_cons */
  2297. klconf_off_t ch_board_info; /* the link list of boards */
  2298. @@ -609,14 +609,14 @@
  2299. /* Info holders for various hardware components */
  2300. -typedef u64 *pci_t;
  2301. -typedef u64 *vmeb_t;
  2302. -typedef u64 *vmed_t;
  2303. -typedef u64 *fddi_t;
  2304. -typedef u64 *scsi_t;
  2305. -typedef u64 *mio_t;
  2306. -typedef u64 *graphics_t;
  2307. -typedef u64 *router_t;
  2308. +typedef __u64 *pci_t;
  2309. +typedef __u64 *vmeb_t;
  2310. +typedef __u64 *vmed_t;
  2311. +typedef __u64 *fddi_t;
  2312. +typedef __u64 *scsi_t;
  2313. +typedef __u64 *mio_t;
  2314. +typedef __u64 *graphics_t;
  2315. +typedef __u64 *router_t;
  2316. /*
  2317. * The port info in ip27_cfg area translates to a lboart_t in the
  2318. @@ -659,7 +659,7 @@
  2319. klport_t hub_port; /* hub is connected to this */
  2320. nic_t hub_box_nic; /* nic of containing box */
  2321. klconf_off_t hub_mfg_nic; /* MFG NIC string */
  2322. - u64 hub_speed; /* Speed of hub in HZ */
  2323. + __u64 hub_speed; /* Speed of hub in HZ */
  2324. } klhub_t ;
  2325. typedef struct klhub_uart_s { /* HUB */
  2326. @@ -716,8 +716,8 @@
  2327. #define MAX_PCI_SLOTS 8
  2328. typedef struct klpci_device_s {
  2329. - s32 pci_device_id; /* 32 bits of vendor/device ID. */
  2330. - s32 pci_device_pad; /* 32 bits of padding. */
  2331. + __s32 pci_device_id; /* 32 bits of vendor/device ID. */
  2332. + __s32 pci_device_pad; /* 32 bits of padding. */
  2333. } klpci_device_t;
  2334. #define BRIDGE_STRUCT_VERSION 2
  2335. @@ -767,7 +767,7 @@
  2336. nic_t rou_box_nic ; /* nic of the containing module */
  2337. klport_t rou_port[MAX_ROUTER_PORTS + 1] ; /* array index 1 to 6 */
  2338. klconf_off_t rou_mfg_nic ; /* MFG NIC string */
  2339. - u64 rou_vector; /* vector from master node */
  2340. + __u64 rou_vector; /* vector from master node */
  2341. } klrou_t ;
  2342. /*
  2343. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/kldir.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/kldir.h
  2344. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/kldir.h 2004-01-17 17:03:49.000000000 -0600
  2345. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/kldir.h 2004-08-26 05:26:25.000000000 -0500
  2346. @@ -210,7 +210,7 @@
  2347. #ifndef __ASSEMBLY__
  2348. typedef struct kldir_ent_s {
  2349. - u64 magic; /* Indicates validity of entry */
  2350. + __u64 magic; /* Indicates validity of entry */
  2351. off_t offset; /* Offset from start of node space */
  2352. #if defined(CONFIG_SGI_IO) /* FIXME */
  2353. __psunsigned_t pointer; /* Pointer to area in some cases */
  2354. @@ -218,7 +218,7 @@
  2355. unsigned long pointer; /* Pointer to area in some cases */
  2356. #endif
  2357. size_t size; /* Size in bytes */
  2358. - u64 count; /* Repeat count if array, 1 if not */
  2359. + __u64 count; /* Repeat count if array, 1 if not */
  2360. size_t stride; /* Stride if array, 0 if not */
  2361. char rsvd[16]; /* Pad entry to 0x40 bytes */
  2362. /* NOTE: These 16 bytes are used in the Partition KLDIR
  2363. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/launch.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/launch.h
  2364. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/launch.h 2004-01-17 17:03:49.000000000 -0600
  2365. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/launch.h 2004-08-26 05:25:52.000000000 -0500
  2366. @@ -62,14 +62,14 @@
  2367. #ifndef __ASSEMBLY__
  2368. typedef int launch_state_t;
  2369. -typedef void (*launch_proc_t)(u64 call_parm);
  2370. +typedef void (*launch_proc_t)(__u64 call_parm);
  2371. typedef struct launch_s {
  2372. - volatile u64 magic; /* Magic number */
  2373. - volatile u64 busy; /* Slave currently active */
  2374. + volatile __u64 magic; /* Magic number */
  2375. + volatile __u64 busy; /* Slave currently active */
  2376. volatile launch_proc_t call_addr; /* Func. for slave to call */
  2377. - volatile u64 call_addr_c; /* 1's complement of call_addr*/
  2378. - volatile u64 call_parm; /* Single parm passed to call*/
  2379. + volatile __u64 call_addr_c; /* 1's complement of call_addr*/
  2380. + volatile __u64 call_parm; /* Single parm passed to call*/
  2381. volatile void *stack_addr; /* Stack pointer for slave function */
  2382. volatile void *gp_addr; /* Global pointer for slave func. */
  2383. volatile char *bevutlb;/* Address of bev utlb ex handler */
  2384. @@ -84,7 +84,7 @@
  2385. #define LAUNCH_SLAVE (*(void (*)(int nasid, int cpu, \
  2386. launch_proc_t call_addr, \
  2387. - u64 call_parm, \
  2388. + __u64 call_parm, \
  2389. void *stack_addr, \
  2390. void *gp_addr)) \
  2391. IP27PROM_LAUNCHSLAVE)
  2392. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/sn0/hubio.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/sn0/hubio.h
  2393. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/sn0/hubio.h 2003-12-15 12:47:02.000000000 -0600
  2394. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/sn0/hubio.h 2004-08-26 05:27:21.000000000 -0500
  2395. @@ -172,9 +172,9 @@
  2396. #ifndef __ASSEMBLY__
  2397. typedef union hubii_wid_u {
  2398. - u64 wid_reg_value;
  2399. + __u64 wid_reg_value;
  2400. struct {
  2401. - u64 wid_rsvd: 32, /* unused */
  2402. + __u64 wid_rsvd: 32, /* unused */
  2403. wid_rev_num: 4, /* revision number */
  2404. wid_part_num: 16, /* the widget type: hub=c101 */
  2405. wid_mfg_num: 11, /* Manufacturer id (IBM) */
  2406. @@ -184,9 +184,9 @@
  2407. typedef union hubii_wcr_u {
  2408. - u64 wcr_reg_value;
  2409. + __u64 wcr_reg_value;
  2410. struct {
  2411. - u64 wcr_rsvd: 41, /* unused */
  2412. + __u64 wcr_rsvd: 41, /* unused */
  2413. wcr_e_thresh: 5, /* elasticity threshold */
  2414. wcr_dir_con: 1, /* widget direct connect */
  2415. wcr_f_bad_pkt: 1, /* Force bad llp pkt enable */
  2416. @@ -200,9 +200,9 @@
  2417. #define iwcr_dir_con wcr_fields_s.wcr_dir_con
  2418. typedef union hubii_wstat_u {
  2419. - u64 reg_value;
  2420. + __u64 reg_value;
  2421. struct {
  2422. - u64 rsvd1: 31,
  2423. + __u64 rsvd1: 31,
  2424. crazy: 1, /* Crazy bit */
  2425. rsvd2: 8,
  2426. llp_tx_cnt: 8, /* LLP Xmit retry counter */
  2427. @@ -217,9 +217,9 @@
  2428. typedef union hubii_ilcsr_u {
  2429. - u64 icsr_reg_value;
  2430. + __u64 icsr_reg_value;
  2431. struct {
  2432. - u64 icsr_rsvd: 22, /* unused */
  2433. + __u64 icsr_rsvd: 22, /* unused */
  2434. icsr_max_burst: 10, /* max burst */
  2435. icsr_rsvd4: 6, /* reserved */
  2436. icsr_max_retry: 10, /* max retry */
  2437. @@ -237,9 +237,9 @@
  2438. typedef union hubii_iowa_u {
  2439. - u64 iowa_reg_value;
  2440. + __u64 iowa_reg_value;
  2441. struct {
  2442. - u64 iowa_rsvd: 48, /* unused */
  2443. + __u64 iowa_rsvd: 48, /* unused */
  2444. iowa_wxoac: 8, /* xtalk widget access bits */
  2445. iowa_rsvd1: 7, /* xtalk widget access bits */
  2446. iowa_w0oac: 1; /* xtalk widget access bits */
  2447. @@ -247,9 +247,9 @@
  2448. } hubii_iowa_t;
  2449. typedef union hubii_iiwa_u {
  2450. - u64 iiwa_reg_value;
  2451. + __u64 iiwa_reg_value;
  2452. struct {
  2453. - u64 iiwa_rsvd: 48, /* unused */
  2454. + __u64 iiwa_rsvd: 48, /* unused */
  2455. iiwa_wxiac: 8, /* hub wid access bits */
  2456. iiwa_rsvd1: 7, /* reserved */
  2457. iiwa_w0iac: 1; /* hub wid0 access */
  2458. @@ -257,9 +257,9 @@
  2459. } hubii_iiwa_t;
  2460. typedef union hubii_illr_u {
  2461. - u64 illr_reg_value;
  2462. + __u64 illr_reg_value;
  2463. struct {
  2464. - u64 illr_rsvd: 32, /* unused */
  2465. + __u64 illr_rsvd: 32, /* unused */
  2466. illr_cb_cnt: 16, /* checkbit error count */
  2467. illr_sn_cnt: 16; /* sequence number count */
  2468. } illr_fields_s;
  2469. @@ -271,9 +271,9 @@
  2470. /* io_perf_sel allows the caller to specify what tests will be
  2471. performed */
  2472. typedef union io_perf_sel {
  2473. - u64 perf_sel_reg;
  2474. + __u64 perf_sel_reg;
  2475. struct {
  2476. - u64 perf_rsvd : 48,
  2477. + __u64 perf_rsvd : 48,
  2478. perf_icct : 8,
  2479. perf_ippr1 : 4,
  2480. perf_ippr0 : 4;
  2481. @@ -284,9 +284,9 @@
  2482. hardware problems there is only one counter, not two. */
  2483. typedef union io_perf_cnt {
  2484. - u64 perf_cnt;
  2485. + __u64 perf_cnt;
  2486. struct {
  2487. - u64 perf_rsvd1 : 32,
  2488. + __u64 perf_rsvd1 : 32,
  2489. perf_rsvd2 : 12,
  2490. perf_cnt : 20;
  2491. } perf_cnt_bits;
  2492. @@ -442,9 +442,9 @@
  2493. */
  2494. #ifndef __ASSEMBLY__
  2495. typedef union icrba_u {
  2496. - u64 reg_value;
  2497. + __u64 reg_value;
  2498. struct {
  2499. - u64 resvd: 6,
  2500. + __u64 resvd: 6,
  2501. stall_bte0: 1, /* Stall BTE 0 */
  2502. stall_bte1: 1, /* Stall BTE 1 */
  2503. error: 1, /* CRB has an error */
  2504. @@ -464,10 +464,10 @@
  2505. runtime selection of the format based on the REV_ID field of the
  2506. NI_STATUS_REV_ID register. */
  2507. typedef union h1_icrba_u {
  2508. - u64 reg_value;
  2509. + __u64 reg_value;
  2510. struct {
  2511. - u64 resvd: 6,
  2512. + __u64 resvd: 6,
  2513. unused: 1, /* Unused but RW!! */
  2514. error: 1, /* CRB has an error */
  2515. ecode: 4, /* Error Code */
  2516. @@ -525,9 +525,9 @@
  2517. */
  2518. #ifndef __ASSEMBLY__
  2519. typedef union icrbb_u {
  2520. - u64 reg_value;
  2521. + __u64 reg_value;
  2522. struct {
  2523. - u64 rsvd1: 5,
  2524. + __u64 rsvd1: 5,
  2525. btenum: 1, /* BTE to which entry belongs to */
  2526. cohtrans: 1, /* Coherent transaction */
  2527. xtsize: 2, /* Xtalk operation size
  2528. @@ -567,9 +567,9 @@
  2529. runtime selection of the format based on the REV_ID field of the
  2530. NI_STATUS_REV_ID register. */
  2531. typedef union h1_icrbb_u {
  2532. - u64 reg_value;
  2533. + __u64 reg_value;
  2534. struct {
  2535. - u64 rsvd1: 5,
  2536. + __u64 rsvd1: 5,
  2537. btenum: 1, /* BTE to which entry belongs to */
  2538. cohtrans: 1, /* Coherent transaction */
  2539. xtsize: 2, /* Xtalk operation size
  2540. @@ -683,9 +683,9 @@
  2541. #ifndef __ASSEMBLY__
  2542. typedef union icrbc_s {
  2543. - u64 reg_value;
  2544. + __u64 reg_value;
  2545. struct {
  2546. - u64 rsvd: 6,
  2547. + __u64 rsvd: 6,
  2548. sleep: 1,
  2549. pricnt: 4, /* Priority count sent with Read req */
  2550. pripsc: 4, /* Priority Pre scalar */
  2551. @@ -720,9 +720,9 @@
  2552. #ifndef __ASSEMBLY__
  2553. typedef union icrbd_s {
  2554. - u64 reg_value;
  2555. + __u64 reg_value;
  2556. struct {
  2557. - u64 rsvd: 38,
  2558. + __u64 rsvd: 38,
  2559. toutvld: 1, /* Timeout in progress for this CRB */
  2560. ctxtvld: 1, /* Context field below is valid */
  2561. rsvd2: 1,
  2562. @@ -742,9 +742,9 @@
  2563. typedef union hubii_ifdr_u {
  2564. - u64 hi_ifdr_value;
  2565. + __u64 hi_ifdr_value;
  2566. struct {
  2567. - u64 ifdr_rsvd: 49,
  2568. + __u64 ifdr_rsvd: 49,
  2569. ifdr_maxrp: 7,
  2570. ifdr_rsvd1: 1,
  2571. ifdr_maxrq: 7;
  2572. @@ -801,9 +801,9 @@
  2573. #ifndef __ASSEMBLY__
  2574. typedef union iprte_a {
  2575. - u64 entry;
  2576. + __u64 entry;
  2577. struct {
  2578. - u64 rsvd1 : 7, /* Reserved field */
  2579. + __u64 rsvd1 : 7, /* Reserved field */
  2580. valid : 1, /* Maps to a timeout entry */
  2581. rsvd2 : 1,
  2582. srcnode : 9, /* Node which did this PIO */
  2583. @@ -835,9 +835,9 @@
  2584. */
  2585. typedef union iprb_u {
  2586. - u64 reg_value;
  2587. + __u64 reg_value;
  2588. struct {
  2589. - u64 rsvd1: 15,
  2590. + __u64 rsvd1: 15,
  2591. error: 1, /* Widget rcvd wr resp pkt w/ error */
  2592. ovflow: 5, /* Over flow count. perf measurement */
  2593. fire_and_forget: 1, /* Launch Write without response */
  2594. @@ -877,9 +877,9 @@
  2595. */
  2596. #ifndef __ASSEMBLY__
  2597. typedef union icrbp_a {
  2598. - u64 ip_reg; /* the entire register value */
  2599. + __u64 ip_reg; /* the entire register value */
  2600. struct {
  2601. - u64 error: 1, /* 63, error occurred */
  2602. + __u64 error: 1, /* 63, error occurred */
  2603. ln_uce: 1, /* 62: uncorrectable memory */
  2604. ln_ae: 1, /* 61: protection violation */
  2605. ln_werr:1, /* 60: write access error */
  2606. @@ -919,9 +919,9 @@
  2607. #ifndef __ASSEMBLY__
  2608. typedef union hubii_idsr {
  2609. - u64 iin_reg;
  2610. + __u64 iin_reg;
  2611. struct {
  2612. - u64 rsvd1 : 35,
  2613. + __u64 rsvd1 : 35,
  2614. isent : 1,
  2615. rsvd2 : 3,
  2616. ienable: 1,
  2617. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/sn0/hubmd.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/sn0/hubmd.h
  2618. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/sn0/hubmd.h 2004-01-17 17:03:49.000000000 -0600
  2619. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/sn0/hubmd.h 2004-08-26 05:27:00.000000000 -0500
  2620. @@ -541,7 +541,7 @@
  2621. */
  2622. struct dir_error_reg {
  2623. - u64 uce_vld: 1, /* 63: valid directory uce */
  2624. + __u64 uce_vld: 1, /* 63: valid directory uce */
  2625. ae_vld: 1, /* 62: valid dir prot ecc error */
  2626. ce_vld: 1, /* 61: valid correctable ECC err*/
  2627. rsvd1: 19, /* 60-42: reserved */
  2628. @@ -555,13 +555,13 @@
  2629. };
  2630. typedef union md_dir_error {
  2631. - u64 derr_reg; /* the entire register */
  2632. + __u64 derr_reg; /* the entire register */
  2633. struct dir_error_reg derr_fmt; /* the register format */
  2634. } md_dir_error_t;
  2635. struct mem_error_reg {
  2636. - u64 uce_vld: 1, /* 63: valid memory uce */
  2637. + __u64 uce_vld: 1, /* 63: valid memory uce */
  2638. ce_vld: 1, /* 62: valid correctable ECC err*/
  2639. rsvd1: 22, /* 61-40: reserved */
  2640. bad_syn: 8, /* 39-32: bad mem ecc syndrome */
  2641. @@ -573,13 +573,13 @@
  2642. typedef union md_mem_error {
  2643. - u64 merr_reg; /* the entire register */
  2644. + __u64 merr_reg; /* the entire register */
  2645. struct mem_error_reg merr_fmt; /* format of the mem_error reg */
  2646. } md_mem_error_t;
  2647. struct proto_error_reg {
  2648. - u64 valid: 1, /* 63: valid protocol error */
  2649. + __u64 valid: 1, /* 63: valid protocol error */
  2650. rsvd1: 2, /* 62-61: reserved */
  2651. initiator:11, /* 60-50: id of request initiator*/
  2652. backoff: 2, /* 49-48: backoff control */
  2653. @@ -594,7 +594,7 @@
  2654. };
  2655. typedef union md_proto_error {
  2656. - u64 perr_reg; /* the entire register */
  2657. + __u64 perr_reg; /* the entire register */
  2658. struct proto_error_reg perr_fmt; /* format of the register */
  2659. } md_proto_error_t;
  2660. @@ -642,7 +642,7 @@
  2661. struct md_pdir_high_fmt {
  2662. - u64 pd_hi_unused : 16,
  2663. + __u64 pd_hi_unused : 16,
  2664. pd_hi_bvec : 38,
  2665. pd_hi_unused1 : 3,
  2666. pd_hi_ecc : 7;
  2667. @@ -651,14 +651,14 @@
  2668. typedef union md_pdir_high {
  2669. /* The 48 bits of standard directory, upper word */
  2670. - u64 pd_hi_val;
  2671. + __u64 pd_hi_val;
  2672. struct md_pdir_high_fmt pd_hi_fmt;
  2673. }md_pdir_high_t;
  2674. struct md_pdir_low_shared_fmt {
  2675. /* The meaning of lower directory, shared */
  2676. - u64 pds_lo_unused : 16,
  2677. + __u64 pds_lo_unused : 16,
  2678. pds_lo_bvec : 26,
  2679. pds_lo_cnt : 6,
  2680. pds_lo_state : 3,
  2681. @@ -670,7 +670,7 @@
  2682. struct md_pdir_low_exclusive_fmt {
  2683. /* The meaning of lower directory, exclusive */
  2684. - u64 pde_lo_unused : 31,
  2685. + __u64 pde_lo_unused : 31,
  2686. pde_lo_ptr : 11,
  2687. pde_lo_unused1 : 6,
  2688. pde_lo_state : 3,
  2689. @@ -683,7 +683,7 @@
  2690. typedef union md_pdir_loent {
  2691. /* The 48 bits of premium directory, lower word */
  2692. - u64 pd_lo_val;
  2693. + __u64 pd_lo_val;
  2694. struct md_pdir_low_exclusive_fmt pde_lo_fmt;
  2695. struct md_pdir_low_shared_fmt pds_lo_fmt;
  2696. }md_pdir_low_t;
  2697. @@ -711,25 +711,25 @@
  2698. } bddir_entry_t;
  2699. typedef struct dir_mem_entry {
  2700. - u64 prcpf[MAX_REGIONS];
  2701. + __u64 prcpf[MAX_REGIONS];
  2702. bddir_entry_t directory_words[MD_PAGE_SIZE/CACHE_SLINE_SIZE];
  2703. } dir_mem_entry_t;
  2704. typedef union md_perf_sel {
  2705. - u64 perf_sel_reg;
  2706. + __u64 perf_sel_reg;
  2707. struct {
  2708. - u64 perf_rsvd : 60,
  2709. + __u64 perf_rsvd : 60,
  2710. perf_en : 1,
  2711. perf_sel : 3;
  2712. } perf_sel_bits;
  2713. } md_perf_sel_t;
  2714. typedef union md_perf_cnt {
  2715. - u64 perf_cnt;
  2716. + __u64 perf_cnt;
  2717. struct {
  2718. - u64 perf_rsvd : 44,
  2719. + __u64 perf_rsvd : 44,
  2720. perf_cnt : 20;
  2721. } perf_cnt_bits;
  2722. } md_perf_cnt_t;
  2723. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/sn0/hubni.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/sn0/hubni.h
  2724. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/sn0/hubni.h 2003-12-15 12:47:02.000000000 -0600
  2725. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/sn0/hubni.h 2004-08-26 05:26:48.000000000 -0500
  2726. @@ -229,9 +229,9 @@
  2727. #ifndef __ASSEMBLY__
  2728. typedef union hubni_port_error_u {
  2729. - u64 nipe_reg_value;
  2730. + __u64 nipe_reg_value;
  2731. struct {
  2732. - u64 nipe_rsvd: 26, /* unused */
  2733. + __u64 nipe_rsvd: 26, /* unused */
  2734. nipe_lnk_reset: 1, /* link reset */
  2735. nipe_intl_err: 1, /* internal error */
  2736. nipe_bad_msg: 1, /* bad message */
  2737. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/sn0/hubpi.h linux-libc-headers-2.6.8.0/include/asm-mips/sn/sn0/hubpi.h
  2738. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/sn/sn0/hubpi.h 2003-12-15 12:47:02.000000000 -0600
  2739. +++ linux-libc-headers-2.6.8.0/include/asm-mips/sn/sn0/hubpi.h 2004-08-26 05:26:36.000000000 -0500
  2740. @@ -312,7 +312,7 @@
  2741. */
  2742. struct err_stack_format {
  2743. - u64 sk_addr : 33, /* address */
  2744. + __u64 sk_addr : 33, /* address */
  2745. sk_cmd : 8, /* message command */
  2746. sk_crb_sts : 10, /* status from RRB or WRB */
  2747. sk_rw_rb : 1, /* RRB == 0, WRB == 1 */
  2748. @@ -323,12 +323,12 @@
  2749. };
  2750. typedef union pi_err_stack {
  2751. - u64 pi_stk_word;
  2752. + __u64 pi_stk_word;
  2753. struct err_stack_format pi_stk_fmt;
  2754. } pi_err_stack_t;
  2755. struct err_status0_format {
  2756. - u64 s0_valid : 1, /* Valid */
  2757. + __u64 s0_valid : 1, /* Valid */
  2758. s0_ovr_run : 1, /* Overrun, spooled to memory */
  2759. s0_addr : 37, /* address */
  2760. s0_cmd : 8, /* message command */
  2761. @@ -338,12 +338,12 @@
  2762. };
  2763. typedef union pi_err_stat0 {
  2764. - u64 pi_stat0_word;
  2765. + __u64 pi_stat0_word;
  2766. struct err_status0_format pi_stat0_fmt;
  2767. } pi_err_stat0_t;
  2768. struct err_status1_format {
  2769. - u64 s1_src : 11, /* message source */
  2770. + __u64 s1_src : 11, /* message source */
  2771. s1_crb_sts : 10, /* status from RRB or WRB */
  2772. s1_rw_rb : 1, /* RRB == 0, WRB == 1 */
  2773. s1_crb_num : 3, /* WRB (0 to 7) or RRB (0 to 4) */
  2774. @@ -353,11 +353,11 @@
  2775. };
  2776. typedef union pi_err_stat1 {
  2777. - u64 pi_stat1_word;
  2778. + __u64 pi_stat1_word;
  2779. struct err_status1_format pi_stat1_fmt;
  2780. } pi_err_stat1_t;
  2781. -typedef u64 rtc_time_t;
  2782. +typedef __u64 rtc_time_t;
  2783. #endif /* !__ASSEMBLY__ */
  2784. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/stackframe.h linux-libc-headers-2.6.8.0/include/asm-mips/stackframe.h
  2785. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/stackframe.h 2004-08-18 13:15:41.000000000 -0500
  2786. +++ linux-libc-headers-2.6.8.0/include/asm-mips/stackframe.h 2004-08-26 05:14:41.000000000 -0500
  2787. @@ -25,7 +25,7 @@
  2788. .macro SAVE_TEMP
  2789. mfhi v1
  2790. -#ifdef CONFIG_MIPS32
  2791. +#ifndef __mips64
  2792. LONG_S $8, PT_R8(sp)
  2793. LONG_S $9, PT_R9(sp)
  2794. #endif
  2795. @@ -55,7 +55,7 @@
  2796. #ifdef CONFIG_SMP
  2797. .macro get_saved_sp /* SMP variation */
  2798. -#ifdef CONFIG_MIPS32
  2799. +#ifndef __mips64
  2800. mfc0 k0, CP0_CONTEXT
  2801. lui k1, %hi(kernelsp)
  2802. srl k0, k0, 23
  2803. @@ -63,7 +63,7 @@
  2804. addu k1, k0
  2805. LONG_L k1, %lo(kernelsp)(k1)
  2806. #endif
  2807. -#ifdef CONFIG_MIPS64
  2808. +#ifdef __mips64
  2809. MFC0 k1, CP0_CONTEXT
  2810. dsra k1, 23
  2811. lui k0, %hi(pgd_current)
  2812. @@ -76,13 +76,13 @@
  2813. .endm
  2814. .macro set_saved_sp stackp temp temp2
  2815. -#ifdef CONFIG_MIPS32
  2816. +#ifndef __mips64
  2817. mfc0 \temp, CP0_CONTEXT
  2818. srl \temp, 23
  2819. sll \temp, 2
  2820. LONG_S \stackp, kernelsp(\temp)
  2821. #endif
  2822. -#ifdef CONFIG_MIPS64
  2823. +#ifdef __mips64
  2824. lw \temp, TI_CPU(gp)
  2825. dsll \temp, 3
  2826. lui \temp2, %hi(kernelsp)
  2827. @@ -127,7 +127,7 @@
  2828. LONG_S $6, PT_R6(sp)
  2829. MFC0 v1, CP0_EPC
  2830. LONG_S $7, PT_R7(sp)
  2831. -#ifdef CONFIG_MIPS64
  2832. +#ifdef __mips64
  2833. LONG_S $8, PT_R8(sp)
  2834. LONG_S $9, PT_R9(sp)
  2835. #endif
  2836. @@ -156,7 +156,7 @@
  2837. .macro RESTORE_TEMP
  2838. LONG_L $24, PT_LO(sp)
  2839. -#ifdef CONFIG_MIPS32
  2840. +#ifndef __mips64
  2841. LONG_L $8, PT_R8(sp)
  2842. LONG_L $9, PT_R9(sp)
  2843. #endif
  2844. @@ -204,7 +204,7 @@
  2845. LONG_L $31, PT_R31(sp)
  2846. LONG_L $28, PT_R28(sp)
  2847. LONG_L $25, PT_R25(sp)
  2848. -#ifdef CONFIG_MIPS64
  2849. +#ifdef __mips64
  2850. LONG_L $8, PT_R8(sp)
  2851. LONG_L $9, PT_R9(sp)
  2852. #endif
  2853. @@ -249,7 +249,7 @@
  2854. LONG_L $31, PT_R31(sp)
  2855. LONG_L $28, PT_R28(sp)
  2856. LONG_L $25, PT_R25(sp)
  2857. -#ifdef CONFIG_MIPS64
  2858. +#ifdef __mips64
  2859. LONG_L $8, PT_R8(sp)
  2860. LONG_L $9, PT_R9(sp)
  2861. #endif
  2862. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/system.h linux-libc-headers-2.6.8.0/include/asm-mips/system.h
  2863. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/system.h 2004-08-18 13:15:42.000000000 -0500
  2864. +++ linux-libc-headers-2.6.8.0/include/asm-mips/system.h 2004-08-28 18:13:39.000000000 -0500
  2865. @@ -15,10 +15,11 @@
  2866. #include <asm/sgidefs.h>
  2867. #include <linux/kernel.h>
  2868. +#include <linux/linkage.h>
  2869. #include <asm/addrspace.h>
  2870. #include <asm/ptrace.h>
  2871. -#include <asm/hazards.h>
  2872. +#include <asm/types.h>
  2873. __asm__ (
  2874. ".macro\tlocal_irq_enable\n\t"
  2875. @@ -311,7 +312,7 @@
  2876. return retval;
  2877. }
  2878. -#ifdef CONFIG_MIPS64
  2879. +#ifdef __mips64
  2880. static inline __u64 __xchg_u64(volatile __u64 * m, __u64 val)
  2881. {
  2882. __u64 retval;
  2883. @@ -406,7 +407,7 @@
  2884. return retval;
  2885. }
  2886. -#ifdef CONFIG_MIPS64
  2887. +#ifdef __mips64
  2888. static inline unsigned long __cmpxchg_u64(volatile int * m, unsigned long old,
  2889. unsigned long new)
  2890. {
  2891. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/tx4927/tx4927_mips.h linux-libc-headers-2.6.8.0/include/asm-mips/tx4927/tx4927_mips.h
  2892. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/tx4927/tx4927_mips.h 2003-12-15 12:47:03.000000000 -0600
  2893. +++ linux-libc-headers-2.6.8.0/include/asm-mips/tx4927/tx4927_mips.h 2004-08-26 05:22:30.000000000 -0500
  2894. @@ -36,15 +36,15 @@
  2895. ".set\tmips0");
  2896. }
  2897. -#define reg_rd08(r) ((u8 )(*((vu8 *)(r))))
  2898. -#define reg_rd16(r) ((u16)(*((vu16*)(r))))
  2899. -#define reg_rd32(r) ((u32)(*((vu32*)(r))))
  2900. -#define reg_rd64(r) ((u64)(*((vu64*)(r))))
  2901. +#define reg_rd08(r) ((__u8 )(*((vu8 *)(r))))
  2902. +#define reg_rd16(r) ((__u16)(*((vu16*)(r))))
  2903. +#define reg_rd32(r) ((__u32)(*((vu32*)(r))))
  2904. +#define reg_rd64(r) ((__u64)(*((vu64*)(r))))
  2905. -#define reg_wr08(r,v) ((*((vu8 *)(r)))=((u8 )(v)))
  2906. -#define reg_wr16(r,v) ((*((vu16*)(r)))=((u16)(v)))
  2907. -#define reg_wr32(r,v) ((*((vu32*)(r)))=((u32)(v)))
  2908. -#define reg_wr64(r,v) ((*((vu64*)(r)))=((u64)(v)))
  2909. +#define reg_wr08(r,v) ((*((vu8 *)(r)))=((__u8 )(v)))
  2910. +#define reg_wr16(r,v) ((*((vu16*)(r)))=((__u16)(v)))
  2911. +#define reg_wr32(r,v) ((*((vu32*)(r)))=((__u32)(v)))
  2912. +#define reg_wr64(r,v) ((*((vu64*)(r)))=((__u64)(v)))
  2913. typedef volatile __signed char vs8;
  2914. typedef volatile unsigned char vu8;
  2915. @@ -55,10 +55,10 @@
  2916. typedef volatile __signed int vs32;
  2917. typedef volatile unsigned int vu32;
  2918. -typedef s8 s08;
  2919. +typedef __s8 s08;
  2920. typedef vs8 vs08;
  2921. -typedef u8 u08;
  2922. +typedef __u8 u08;
  2923. typedef vu8 vu08;
  2924. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/unaligned.h linux-libc-headers-2.6.8.0/include/asm-mips/unaligned.h
  2925. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/unaligned.h 2004-08-15 15:38:27.000000000 -0500
  2926. +++ linux-libc-headers-2.6.8.0/include/asm-mips/unaligned.h 2004-08-26 05:22:21.000000000 -0500
  2927. @@ -17,7 +17,7 @@
  2928. *
  2929. * This macro should be used for accessing values larger in size than
  2930. * single bytes at locations that are expected to be improperly aligned,
  2931. - * e.g. retrieving a u16 value from a location not u16-aligned.
  2932. + * e.g. retrieving a __u16 value from a location not __u16-aligned.
  2933. *
  2934. * Note that unaligned accesses can be very expensive on some architectures.
  2935. */
  2936. @@ -31,7 +31,7 @@
  2937. *
  2938. * This macro should be used for placing values larger in size than
  2939. * single bytes at locations that are expected to be improperly aligned,
  2940. - * e.g. writing a u16 value to a location not u16-aligned.
  2941. + * e.g. writing a __u16 value to a location not __u16-aligned.
  2942. *
  2943. * Note that unaligned accesses can be very expensive on some architectures.
  2944. */
  2945. diff -urN linux-libc-headers-2.6.8.0-dist/include/asm-mips/xtalk/xwidget.h linux-libc-headers-2.6.8.0/include/asm-mips/xtalk/xwidget.h
  2946. --- linux-libc-headers-2.6.8.0-dist/include/asm-mips/xtalk/xwidget.h 2003-12-15 12:47:03.000000000 -0600
  2947. +++ linux-libc-headers-2.6.8.0/include/asm-mips/xtalk/xwidget.h 2004-08-26 05:23:33.000000000 -0500
  2948. @@ -92,7 +92,7 @@
  2949. * defined here
  2950. */
  2951. #ifndef __ASSEMBLY__
  2952. -typedef u32 widgetreg_t;
  2953. +typedef __u32 widgetreg_t;
  2954. /* widget configuration registers */
  2955. typedef volatile struct widget_cfg {
  2956. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/acpi.h linux-libc-headers-2.6.8.0/include/linux/acpi.h
  2957. --- linux-libc-headers-2.6.8.0-dist/include/linux/acpi.h 2004-08-18 13:16:01.000000000 -0500
  2958. +++ linux-libc-headers-2.6.8.0/include/linux/acpi.h 2004-08-26 05:41:49.000000000 -0500
  2959. @@ -51,49 +51,49 @@
  2960. struct acpi_table_rsdp {
  2961. char signature[8];
  2962. - u8 checksum;
  2963. + __u8 checksum;
  2964. char oem_id[6];
  2965. - u8 revision;
  2966. - u32 rsdt_address;
  2967. + __u8 revision;
  2968. + __u32 rsdt_address;
  2969. } __attribute__ ((packed));
  2970. struct acpi20_table_rsdp {
  2971. char signature[8];
  2972. - u8 checksum;
  2973. + __u8 checksum;
  2974. char oem_id[6];
  2975. - u8 revision;
  2976. - u32 rsdt_address;
  2977. - u32 length;
  2978. - u64 xsdt_address;
  2979. - u8 ext_checksum;
  2980. - u8 reserved[3];
  2981. + __u8 revision;
  2982. + __u32 rsdt_address;
  2983. + __u32 length;
  2984. + __u64 xsdt_address;
  2985. + __u8 ext_checksum;
  2986. + __u8 reserved[3];
  2987. } __attribute__ ((packed));
  2988. typedef struct {
  2989. - u8 type;
  2990. - u8 length;
  2991. + __u8 type;
  2992. + __u8 length;
  2993. } __attribute__ ((packed)) acpi_table_entry_header;
  2994. /* Root System Description Table (RSDT) */
  2995. struct acpi_table_rsdt {
  2996. struct acpi_table_header header;
  2997. - u32 entry[8];
  2998. + __u32 entry[8];
  2999. } __attribute__ ((packed));
  3000. /* Extended System Description Table (XSDT) */
  3001. struct acpi_table_xsdt {
  3002. struct acpi_table_header header;
  3003. - u64 entry[1];
  3004. + __u64 entry[1];
  3005. } __attribute__ ((packed));
  3006. /* Fixed ACPI Description Table (FADT) */
  3007. struct acpi_table_fadt {
  3008. struct acpi_table_header header;
  3009. - u32 facs_addr;
  3010. - u32 dsdt_addr;
  3011. + __u32 facs_addr;
  3012. + __u32 dsdt_addr;
  3013. /* ... */
  3014. } __attribute__ ((packed));
  3015. @@ -101,10 +101,10 @@
  3016. struct acpi_table_madt {
  3017. struct acpi_table_header header;
  3018. - u32 lapic_address;
  3019. + __u32 lapic_address;
  3020. struct {
  3021. - u32 pcat_compat:1;
  3022. - u32 reserved:31;
  3023. + __u32 pcat_compat:1;
  3024. + __u32 reserved:31;
  3025. } flags;
  3026. } __attribute__ ((packed));
  3027. @@ -122,85 +122,85 @@
  3028. };
  3029. typedef struct {
  3030. - u16 polarity:2;
  3031. - u16 trigger:2;
  3032. - u16 reserved:12;
  3033. + __u16 polarity:2;
  3034. + __u16 trigger:2;
  3035. + __u16 reserved:12;
  3036. } __attribute__ ((packed)) acpi_interrupt_flags;
  3037. struct acpi_table_lapic {
  3038. acpi_table_entry_header header;
  3039. - u8 acpi_id;
  3040. - u8 id;
  3041. + __u8 acpi_id;
  3042. + __u8 id;
  3043. struct {
  3044. - u32 enabled:1;
  3045. - u32 reserved:31;
  3046. + __u32 enabled:1;
  3047. + __u32 reserved:31;
  3048. } flags;
  3049. } __attribute__ ((packed));
  3050. struct acpi_table_ioapic {
  3051. acpi_table_entry_header header;
  3052. - u8 id;
  3053. - u8 reserved;
  3054. - u32 address;
  3055. - u32 global_irq_base;
  3056. + __u8 id;
  3057. + __u8 reserved;
  3058. + __u32 address;
  3059. + __u32 global_irq_base;
  3060. } __attribute__ ((packed));
  3061. struct acpi_table_int_src_ovr {
  3062. acpi_table_entry_header header;
  3063. - u8 bus;
  3064. - u8 bus_irq;
  3065. - u32 global_irq;
  3066. + __u8 bus;
  3067. + __u8 bus_irq;
  3068. + __u32 global_irq;
  3069. acpi_interrupt_flags flags;
  3070. } __attribute__ ((packed));
  3071. struct acpi_table_nmi_src {
  3072. acpi_table_entry_header header;
  3073. acpi_interrupt_flags flags;
  3074. - u32 global_irq;
  3075. + __u32 global_irq;
  3076. } __attribute__ ((packed));
  3077. struct acpi_table_lapic_nmi {
  3078. acpi_table_entry_header header;
  3079. - u8 acpi_id;
  3080. + __u8 acpi_id;
  3081. acpi_interrupt_flags flags;
  3082. - u8 lint;
  3083. + __u8 lint;
  3084. } __attribute__ ((packed));
  3085. struct acpi_table_lapic_addr_ovr {
  3086. acpi_table_entry_header header;
  3087. - u8 reserved[2];
  3088. - u64 address;
  3089. + __u8 reserved[2];
  3090. + __u64 address;
  3091. } __attribute__ ((packed));
  3092. struct acpi_table_iosapic {
  3093. acpi_table_entry_header header;
  3094. - u8 id;
  3095. - u8 reserved;
  3096. - u32 global_irq_base;
  3097. - u64 address;
  3098. + __u8 id;
  3099. + __u8 reserved;
  3100. + __u32 global_irq_base;
  3101. + __u64 address;
  3102. } __attribute__ ((packed));
  3103. struct acpi_table_lsapic {
  3104. acpi_table_entry_header header;
  3105. - u8 acpi_id;
  3106. - u8 id;
  3107. - u8 eid;
  3108. - u8 reserved[3];
  3109. + __u8 acpi_id;
  3110. + __u8 id;
  3111. + __u8 eid;
  3112. + __u8 reserved[3];
  3113. struct {
  3114. - u32 enabled:1;
  3115. - u32 reserved:31;
  3116. + __u32 enabled:1;
  3117. + __u32 reserved:31;
  3118. } flags;
  3119. } __attribute__ ((packed));
  3120. struct acpi_table_plat_int_src {
  3121. acpi_table_entry_header header;
  3122. acpi_interrupt_flags flags;
  3123. - u8 type; /* See acpi_interrupt_type */
  3124. - u8 id;
  3125. - u8 eid;
  3126. - u8 iosapic_vector;
  3127. - u32 global_irq;
  3128. - u32 reserved;
  3129. + __u8 type; /* See acpi_interrupt_type */
  3130. + __u8 id;
  3131. + __u8 eid;
  3132. + __u8 iosapic_vector;
  3133. + __u32 global_irq;
  3134. + __u32 reserved;
  3135. } __attribute__ ((packed));
  3136. enum acpi_interrupt_id {
  3137. @@ -213,21 +213,21 @@
  3138. #define ACPI_SPACE_MEM 0
  3139. struct acpi_gen_regaddr {
  3140. - u8 space_id;
  3141. - u8 bit_width;
  3142. - u8 bit_offset;
  3143. - u8 resv;
  3144. - u32 addrl;
  3145. - u32 addrh;
  3146. + __u8 space_id;
  3147. + __u8 bit_width;
  3148. + __u8 bit_offset;
  3149. + __u8 resv;
  3150. + __u32 addrl;
  3151. + __u32 addrh;
  3152. } __attribute__ ((packed));
  3153. struct acpi_table_hpet {
  3154. struct acpi_table_header header;
  3155. - u32 id;
  3156. + __u32 id;
  3157. struct acpi_gen_regaddr addr;
  3158. - u8 number;
  3159. - u16 min_tick;
  3160. - u8 page_protect;
  3161. + __u8 number;
  3162. + __u16 min_tick;
  3163. + __u8 page_protect;
  3164. } __attribute__ ((packed));
  3165. /*
  3166. @@ -236,17 +236,17 @@
  3167. */
  3168. struct acpi_table_sbf
  3169. {
  3170. - u8 sbf_signature[4];
  3171. - u32 sbf_len;
  3172. - u8 sbf_revision;
  3173. - u8 sbf_csum;
  3174. - u8 sbf_oemid[6];
  3175. - u8 sbf_oemtable[8];
  3176. - u8 sbf_revdata[4];
  3177. - u8 sbf_creator[4];
  3178. - u8 sbf_crearev[4];
  3179. - u8 sbf_cmos;
  3180. - u8 sbf_spare[3];
  3181. + __u8 sbf_signature[4];
  3182. + __u32 sbf_len;
  3183. + __u8 sbf_revision;
  3184. + __u8 sbf_csum;
  3185. + __u8 sbf_oemid[6];
  3186. + __u8 sbf_oemtable[8];
  3187. + __u8 sbf_revdata[4];
  3188. + __u8 sbf_creator[4];
  3189. + __u8 sbf_crearev[4];
  3190. + __u8 sbf_cmos;
  3191. + __u8 sbf_spare[3];
  3192. } __attribute__ ((packed));
  3193. /*
  3194. @@ -256,8 +256,8 @@
  3195. struct acpi_table_srat {
  3196. struct acpi_table_header header;
  3197. - u32 table_revision;
  3198. - u64 reserved;
  3199. + __u32 table_revision;
  3200. + __u64 reserved;
  3201. } __attribute__ ((packed));
  3202. enum acpi_srat_entry_id {
  3203. @@ -268,31 +268,31 @@
  3204. struct acpi_table_processor_affinity {
  3205. acpi_table_entry_header header;
  3206. - u8 proximity_domain;
  3207. - u8 apic_id;
  3208. + __u8 proximity_domain;
  3209. + __u8 apic_id;
  3210. struct {
  3211. - u32 enabled:1;
  3212. - u32 reserved:31;
  3213. + __u32 enabled:1;
  3214. + __u32 reserved:31;
  3215. } flags;
  3216. - u8 lsapic_eid;
  3217. - u8 reserved[7];
  3218. + __u8 lsapic_eid;
  3219. + __u8 reserved[7];
  3220. } __attribute__ ((packed));
  3221. struct acpi_table_memory_affinity {
  3222. acpi_table_entry_header header;
  3223. - u8 proximity_domain;
  3224. - u8 reserved1[5];
  3225. - u32 base_addr_lo;
  3226. - u32 base_addr_hi;
  3227. - u32 length_lo;
  3228. - u32 length_hi;
  3229. - u32 memory_type; /* See acpi_address_range_id */
  3230. + __u8 proximity_domain;
  3231. + __u8 reserved1[5];
  3232. + __u32 base_addr_lo;
  3233. + __u32 base_addr_hi;
  3234. + __u32 length_lo;
  3235. + __u32 length_hi;
  3236. + __u32 memory_type; /* See acpi_address_range_id */
  3237. struct {
  3238. - u32 enabled:1;
  3239. - u32 hot_pluggable:1;
  3240. - u32 reserved:30;
  3241. + __u32 enabled:1;
  3242. + __u32 hot_pluggable:1;
  3243. + __u32 reserved:30;
  3244. } flags;
  3245. - u64 reserved2;
  3246. + __u64 reserved2;
  3247. } __attribute__ ((packed));
  3248. enum acpi_address_range_id {
  3249. @@ -310,17 +310,17 @@
  3250. struct acpi_table_slit {
  3251. struct acpi_table_header header;
  3252. - u64 localities;
  3253. - u8 entry[1]; /* real size = localities^2 */
  3254. + __u64 localities;
  3255. + __u8 entry[1]; /* real size = localities^2 */
  3256. } __attribute__ ((packed));
  3257. /* Smart Battery Description Table (SBST) */
  3258. struct acpi_table_sbst {
  3259. struct acpi_table_header header;
  3260. - u32 warning; /* Warn user */
  3261. - u32 low; /* Critical sleep */
  3262. - u32 critical; /* Critical shutdown */
  3263. + __u32 warning; /* Warn user */
  3264. + __u32 low; /* Critical sleep */
  3265. + __u32 critical; /* Critical shutdown */
  3266. } __attribute__ ((packed));
  3267. /* Embedded Controller Boot Resources Table (ECDT) */
  3268. @@ -329,8 +329,8 @@
  3269. struct acpi_table_header header;
  3270. struct acpi_generic_address ec_control;
  3271. struct acpi_generic_address ec_data;
  3272. - u32 uid;
  3273. - u8 gpe_bit;
  3274. + __u32 uid;
  3275. + __u8 gpe_bit;
  3276. char ec_id[0];
  3277. } __attribute__ ((packed));
  3278. @@ -338,9 +338,9 @@
  3279. struct acpi_table_mcfg {
  3280. struct acpi_table_header header;
  3281. - u8 reserved[8];
  3282. - u32 base_address;
  3283. - u32 base_reserved;
  3284. + __u8 reserved[8];
  3285. + __u32 base_address;
  3286. + __u32 base_reserved;
  3287. } __attribute__ ((packed));
  3288. /* Table Handlers */
  3289. @@ -396,7 +396,7 @@
  3290. extern int acpi_mp_config;
  3291. -extern u32 pci_mmcfg_base_addr;
  3292. +extern __u32 pci_mmcfg_base_addr;
  3293. extern int sbf_port ;
  3294. @@ -411,20 +411,20 @@
  3295. #endif /*!CONFIG_ACPI_BOOT*/
  3296. -unsigned int acpi_register_gsi (u32 gsi, int edge_level, int active_high_low);
  3297. -int acpi_gsi_to_irq (u32 gsi, unsigned int *irq);
  3298. +unsigned int acpi_register_gsi (__u32 gsi, int edge_level, int active_high_low);
  3299. +int acpi_gsi_to_irq (__u32 gsi, unsigned int *irq);
  3300. #ifdef CONFIG_ACPI_PCI
  3301. struct acpi_prt_entry {
  3302. struct list_head node;
  3303. struct acpi_pci_id id;
  3304. - u8 pin;
  3305. + __u8 pin;
  3306. struct {
  3307. acpi_handle handle;
  3308. - u32 index;
  3309. + __u32 index;
  3310. } link;
  3311. - u32 irq;
  3312. + __u32 irq;
  3313. };
  3314. struct acpi_prt_list {
  3315. @@ -451,8 +451,8 @@
  3316. #ifdef CONFIG_ACPI_EC
  3317. -int ec_read(u8 addr, u8 *val);
  3318. -int ec_write(u8 addr, u8 val);
  3319. +int ec_read(__u8 addr, __u8 *val);
  3320. +int ec_write(__u8 addr, __u8 val);
  3321. #endif /*CONFIG_ACPI_EC*/
  3322. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/affs_fs_i.h linux-libc-headers-2.6.8.0/include/linux/affs_fs_i.h
  3323. --- linux-libc-headers-2.6.8.0-dist/include/linux/affs_fs_i.h 2003-12-31 17:46:48.000000000 -0600
  3324. +++ linux-libc-headers-2.6.8.0/include/linux/affs_fs_i.h 2004-08-26 05:41:49.000000000 -0500
  3325. @@ -9,13 +9,13 @@
  3326. //#define AFFS_CACHE_SIZE (4*4)
  3327. #define AFFS_MAX_PREALLOC 32
  3328. -#define AFFS_LC_SIZE (AFFS_CACHE_SIZE/sizeof(u32)/2)
  3329. +#define AFFS_LC_SIZE (AFFS_CACHE_SIZE/sizeof(__u32)/2)
  3330. #define AFFS_AC_SIZE (AFFS_CACHE_SIZE/sizeof(struct affs_ext_key)/2)
  3331. #define AFFS_AC_MASK (AFFS_AC_SIZE-1)
  3332. struct affs_ext_key {
  3333. - u32 ext; /* idx of the extended block */
  3334. - u32 key; /* block number */
  3335. + __u32 ext; /* idx of the extended block */
  3336. + __u32 key; /* block number */
  3337. };
  3338. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/affs_fs_sb.h linux-libc-headers-2.6.8.0/include/linux/affs_fs_sb.h
  3339. --- linux-libc-headers-2.6.8.0-dist/include/linux/affs_fs_sb.h 2004-08-18 13:16:01.000000000 -0500
  3340. +++ linux-libc-headers-2.6.8.0/include/linux/affs_fs_sb.h 2004-08-26 05:41:49.000000000 -0500
  3341. @@ -9,8 +9,8 @@
  3342. */
  3343. struct affs_bm_info {
  3344. - u32 bm_key; /* Disk block number */
  3345. - u32 bm_free; /* Free blocks in here */
  3346. + __u32 bm_key; /* Disk block number */
  3347. + __u32 bm_free; /* Free blocks in here */
  3348. };
  3349. #define SF_INTL 0x0001 /* International filesystem. */
  3350. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/affs_hardblocks.h linux-libc-headers-2.6.8.0/include/linux/affs_hardblocks.h
  3351. --- linux-libc-headers-2.6.8.0-dist/include/linux/affs_hardblocks.h 2003-12-15 12:46:58.000000000 -0600
  3352. +++ linux-libc-headers-2.6.8.0/include/linux/affs_hardblocks.h 2004-08-26 05:41:49.000000000 -0500
  3353. @@ -4,59 +4,59 @@
  3354. /* Just the needed definitions for the RDB of an Amiga HD. */
  3355. struct RigidDiskBlock {
  3356. - u32 rdb_ID;
  3357. - u32 rdb_SummedLongs;
  3358. - s32 rdb_ChkSum;
  3359. - u32 rdb_HostID;
  3360. - u32 rdb_BlockBytes;
  3361. - u32 rdb_Flags;
  3362. - u32 rdb_BadBlockList;
  3363. - u32 rdb_PartitionList;
  3364. - u32 rdb_FileSysHeaderList;
  3365. - u32 rdb_DriveInit;
  3366. - u32 rdb_Reserved1[6];
  3367. - u32 rdb_Cylinders;
  3368. - u32 rdb_Sectors;
  3369. - u32 rdb_Heads;
  3370. - u32 rdb_Interleave;
  3371. - u32 rdb_Park;
  3372. - u32 rdb_Reserved2[3];
  3373. - u32 rdb_WritePreComp;
  3374. - u32 rdb_ReducedWrite;
  3375. - u32 rdb_StepRate;
  3376. - u32 rdb_Reserved3[5];
  3377. - u32 rdb_RDBBlocksLo;
  3378. - u32 rdb_RDBBlocksHi;
  3379. - u32 rdb_LoCylinder;
  3380. - u32 rdb_HiCylinder;
  3381. - u32 rdb_CylBlocks;
  3382. - u32 rdb_AutoParkSeconds;
  3383. - u32 rdb_HighRDSKBlock;
  3384. - u32 rdb_Reserved4;
  3385. + __u32 rdb_ID;
  3386. + __u32 rdb_SummedLongs;
  3387. + __s32 rdb_ChkSum;
  3388. + __u32 rdb_HostID;
  3389. + __u32 rdb_BlockBytes;
  3390. + __u32 rdb_Flags;
  3391. + __u32 rdb_BadBlockList;
  3392. + __u32 rdb_PartitionList;
  3393. + __u32 rdb_FileSysHeaderList;
  3394. + __u32 rdb_DriveInit;
  3395. + __u32 rdb_Reserved1[6];
  3396. + __u32 rdb_Cylinders;
  3397. + __u32 rdb_Sectors;
  3398. + __u32 rdb_Heads;
  3399. + __u32 rdb_Interleave;
  3400. + __u32 rdb_Park;
  3401. + __u32 rdb_Reserved2[3];
  3402. + __u32 rdb_WritePreComp;
  3403. + __u32 rdb_ReducedWrite;
  3404. + __u32 rdb_StepRate;
  3405. + __u32 rdb_Reserved3[5];
  3406. + __u32 rdb_RDBBlocksLo;
  3407. + __u32 rdb_RDBBlocksHi;
  3408. + __u32 rdb_LoCylinder;
  3409. + __u32 rdb_HiCylinder;
  3410. + __u32 rdb_CylBlocks;
  3411. + __u32 rdb_AutoParkSeconds;
  3412. + __u32 rdb_HighRDSKBlock;
  3413. + __u32 rdb_Reserved4;
  3414. char rdb_DiskVendor[8];
  3415. char rdb_DiskProduct[16];
  3416. char rdb_DiskRevision[4];
  3417. char rdb_ControllerVendor[8];
  3418. char rdb_ControllerProduct[16];
  3419. char rdb_ControllerRevision[4];
  3420. - u32 rdb_Reserved5[10];
  3421. + __u32 rdb_Reserved5[10];
  3422. };
  3423. #define IDNAME_RIGIDDISK 0x5244534B /* "RDSK" */
  3424. struct PartitionBlock {
  3425. - u32 pb_ID;
  3426. - u32 pb_SummedLongs;
  3427. - s32 pb_ChkSum;
  3428. - u32 pb_HostID;
  3429. - u32 pb_Next;
  3430. - u32 pb_Flags;
  3431. - u32 pb_Reserved1[2];
  3432. - u32 pb_DevFlags;
  3433. - u8 pb_DriveName[32];
  3434. - u32 pb_Reserved2[15];
  3435. - u32 pb_Environment[17];
  3436. - u32 pb_EReserved[15];
  3437. + __u32 pb_ID;
  3438. + __u32 pb_SummedLongs;
  3439. + __s32 pb_ChkSum;
  3440. + __u32 pb_HostID;
  3441. + __u32 pb_Next;
  3442. + __u32 pb_Flags;
  3443. + __u32 pb_Reserved1[2];
  3444. + __u32 pb_DevFlags;
  3445. + __u8 pb_DriveName[32];
  3446. + __u32 pb_Reserved2[15];
  3447. + __u32 pb_Environment[17];
  3448. + __u32 pb_EReserved[15];
  3449. };
  3450. #define IDNAME_PARTITION 0x50415254 /* "PART" */
  3451. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/amigaffs.h linux-libc-headers-2.6.8.0/include/linux/amigaffs.h
  3452. --- linux-libc-headers-2.6.8.0-dist/include/linux/amigaffs.h 2003-12-31 17:46:48.000000000 -0600
  3453. +++ linux-libc-headers-2.6.8.0/include/linux/amigaffs.h 2004-08-26 05:41:49.000000000 -0500
  3454. @@ -64,90 +64,90 @@
  3455. #define AFFS_DATA(bh) (((struct affs_data_head *)(bh)->b_data)->data)
  3456. struct affs_date {
  3457. - u32 days;
  3458. - u32 mins;
  3459. - u32 ticks;
  3460. + __u32 days;
  3461. + __u32 mins;
  3462. + __u32 ticks;
  3463. };
  3464. struct affs_short_date {
  3465. - u16 days;
  3466. - u16 mins;
  3467. - u16 ticks;
  3468. + __u16 days;
  3469. + __u16 mins;
  3470. + __u16 ticks;
  3471. };
  3472. struct affs_root_head {
  3473. - u32 ptype;
  3474. - u32 spare1;
  3475. - u32 spare2;
  3476. - u32 hash_size;
  3477. - u32 spare3;
  3478. - u32 checksum;
  3479. - u32 hashtable[1];
  3480. + __u32 ptype;
  3481. + __u32 spare1;
  3482. + __u32 spare2;
  3483. + __u32 hash_size;
  3484. + __u32 spare3;
  3485. + __u32 checksum;
  3486. + __u32 hashtable[1];
  3487. };
  3488. struct affs_root_tail {
  3489. - u32 bm_flag;
  3490. - u32 bm_blk[AFFS_ROOT_BMAPS];
  3491. - u32 bm_ext;
  3492. + __u32 bm_flag;
  3493. + __u32 bm_blk[AFFS_ROOT_BMAPS];
  3494. + __u32 bm_ext;
  3495. struct affs_date root_change;
  3496. - u8 disk_name[32];
  3497. - u32 spare1;
  3498. - u32 spare2;
  3499. + __u8 disk_name[32];
  3500. + __u32 spare1;
  3501. + __u32 spare2;
  3502. struct affs_date disk_change;
  3503. struct affs_date disk_create;
  3504. - u32 spare3;
  3505. - u32 spare4;
  3506. - u32 dcache;
  3507. - u32 stype;
  3508. + __u32 spare3;
  3509. + __u32 spare4;
  3510. + __u32 dcache;
  3511. + __u32 stype;
  3512. };
  3513. struct affs_head {
  3514. - u32 ptype;
  3515. - u32 key;
  3516. - u32 block_count;
  3517. - u32 spare1;
  3518. - u32 first_data;
  3519. - u32 checksum;
  3520. - u32 table[1];
  3521. + __u32 ptype;
  3522. + __u32 key;
  3523. + __u32 block_count;
  3524. + __u32 spare1;
  3525. + __u32 first_data;
  3526. + __u32 checksum;
  3527. + __u32 table[1];
  3528. };
  3529. struct affs_tail {
  3530. - u32 spare1;
  3531. - u16 uid;
  3532. - u16 gid;
  3533. - u32 protect;
  3534. - u32 size;
  3535. - u8 comment[92];
  3536. + __u32 spare1;
  3537. + __u16 uid;
  3538. + __u16 gid;
  3539. + __u32 protect;
  3540. + __u32 size;
  3541. + __u8 comment[92];
  3542. struct affs_date change;
  3543. - u8 name[32];
  3544. - u32 spare2;
  3545. - u32 original;
  3546. - u32 link_chain;
  3547. - u32 spare[5];
  3548. - u32 hash_chain;
  3549. - u32 parent;
  3550. - u32 extension;
  3551. - u32 stype;
  3552. + __u8 name[32];
  3553. + __u32 spare2;
  3554. + __u32 original;
  3555. + __u32 link_chain;
  3556. + __u32 spare[5];
  3557. + __u32 hash_chain;
  3558. + __u32 parent;
  3559. + __u32 extension;
  3560. + __u32 stype;
  3561. };
  3562. struct slink_front
  3563. {
  3564. - u32 ptype;
  3565. - u32 key;
  3566. - u32 spare1[3];
  3567. - u32 checksum;
  3568. - u8 symname[1]; /* depends on block size */
  3569. + __u32 ptype;
  3570. + __u32 key;
  3571. + __u32 spare1[3];
  3572. + __u32 checksum;
  3573. + __u8 symname[1]; /* depends on block size */
  3574. };
  3575. struct affs_data_head
  3576. {
  3577. - u32 ptype;
  3578. - u32 key;
  3579. - u32 sequence;
  3580. - u32 size;
  3581. - u32 next;
  3582. - u32 checksum;
  3583. - u8 data[1]; /* depends on block size */
  3584. + __u32 ptype;
  3585. + __u32 key;
  3586. + __u32 sequence;
  3587. + __u32 size;
  3588. + __u32 next;
  3589. + __u32 checksum;
  3590. + __u8 data[1]; /* depends on block size */
  3591. };
  3592. /* Permission bits */
  3593. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/ata.h linux-libc-headers-2.6.8.0/include/linux/ata.h
  3594. --- linux-libc-headers-2.6.8.0-dist/include/linux/ata.h 2004-08-18 13:16:01.000000000 -0500
  3595. +++ linux-libc-headers-2.6.8.0/include/linux/ata.h 2004-08-26 05:41:49.000000000 -0500
  3596. @@ -34,7 +34,7 @@
  3597. ATA_MAX_PRD = 256, /* we could make these 256/256 */
  3598. ATA_SECT_SIZE = 512,
  3599. ATA_SECT_SIZE_MASK = (ATA_SECT_SIZE - 1),
  3600. - ATA_SECT_DWORDS = ATA_SECT_SIZE / sizeof(u32),
  3601. + ATA_SECT_DWORDS = ATA_SECT_SIZE / sizeof(__u32),
  3602. ATA_ID_WORDS = 256,
  3603. ATA_ID_PROD_OFS = 27,
  3604. @@ -176,31 +176,31 @@
  3605. /* core structures */
  3606. struct ata_prd {
  3607. - u32 addr;
  3608. - u32 flags_len;
  3609. + __u32 addr;
  3610. + __u32 flags_len;
  3611. } __attribute__((packed));
  3612. struct ata_taskfile {
  3613. unsigned long flags; /* ATA_TFLAG_xxx */
  3614. - u8 protocol; /* ATA_PROT_xxx */
  3615. + __u8 protocol; /* ATA_PROT_xxx */
  3616. - u8 ctl; /* control reg */
  3617. + __u8 ctl; /* control reg */
  3618. - u8 hob_feature; /* additional data */
  3619. - u8 hob_nsect; /* to support LBA48 */
  3620. - u8 hob_lbal;
  3621. - u8 hob_lbam;
  3622. - u8 hob_lbah;
  3623. + __u8 hob_feature; /* additional data */
  3624. + __u8 hob_nsect; /* to support LBA48 */
  3625. + __u8 hob_lbal;
  3626. + __u8 hob_lbam;
  3627. + __u8 hob_lbah;
  3628. - u8 feature;
  3629. - u8 nsect;
  3630. - u8 lbal;
  3631. - u8 lbam;
  3632. - u8 lbah;
  3633. + __u8 feature;
  3634. + __u8 nsect;
  3635. + __u8 lbal;
  3636. + __u8 lbam;
  3637. + __u8 lbah;
  3638. - u8 device;
  3639. + __u8 device;
  3640. - u8 command; /* IO operation */
  3641. + __u8 command; /* IO operation */
  3642. };
  3643. #define ata_id_is_ata(dev) (((dev)->id[0] & (1 << 15)) == 0)
  3644. @@ -213,12 +213,12 @@
  3645. #define ata_id_has_dma(dev) ((dev)->id[49] & (1 << 8))
  3646. #define ata_id_removeable(dev) ((dev)->id[0] & (1 << 7))
  3647. #define ata_id_u32(dev,n) \
  3648. - (((u32) (dev)->id[(n) + 1] << 16) | ((u32) (dev)->id[(n)]))
  3649. + (((__u32) (dev)->id[(n) + 1] << 16) | ((__u32) (dev)->id[(n)]))
  3650. #define ata_id_u64(dev,n) \
  3651. - ( ((u64) dev->id[(n) + 3] << 48) | \
  3652. - ((u64) dev->id[(n) + 2] << 32) | \
  3653. - ((u64) dev->id[(n) + 1] << 16) | \
  3654. - ((u64) dev->id[(n) + 0]) )
  3655. + ( ((__u64) dev->id[(n) + 3] << 48) | \
  3656. + ((__u64) dev->id[(n) + 2] << 32) | \
  3657. + ((__u64) dev->id[(n) + 1] << 16) | \
  3658. + ((__u64) dev->id[(n) + 0]) )
  3659. static inline int is_atapi_taskfile(struct ata_taskfile *tf)
  3660. {
  3661. @@ -226,7 +226,7 @@
  3662. (tf->protocol == ATA_PROT_ATAPI_DMA);
  3663. }
  3664. -static inline int ata_ok(u8 status)
  3665. +static inline int ata_ok(__u8 status)
  3666. {
  3667. return ((status & (ATA_BUSY | ATA_DRDY | ATA_DF | ATA_DRQ | ATA_ERR))
  3668. == ATA_DRDY);
  3669. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/bitops.h linux-libc-headers-2.6.8.0/include/linux/bitops.h
  3670. --- linux-libc-headers-2.6.8.0-dist/include/linux/bitops.h 2004-06-09 07:00:49.000000000 -0500
  3671. +++ linux-libc-headers-2.6.8.0/include/linux/bitops.h 2004-08-26 05:41:49.000000000 -0500
  3672. @@ -114,7 +114,7 @@
  3673. return generic_hweight32((unsigned int)(w >> 32)) +
  3674. generic_hweight32((unsigned int)w);
  3675. #else
  3676. - u64 res;
  3677. + __u64 res;
  3678. res = (w & 0x5555555555555555ul) + ((w >> 1) & 0x5555555555555555ul);
  3679. res = (res & 0x3333333333333333ul) + ((res >> 2) & 0x3333333333333333ul);
  3680. res = (res & 0x0F0F0F0F0F0F0F0Ful) + ((res >> 4) & 0x0F0F0F0F0F0F0F0Ful);
  3681. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/compat.h linux-libc-headers-2.6.8.0/include/linux/compat.h
  3682. --- linux-libc-headers-2.6.8.0-dist/include/linux/compat.h 2004-06-09 07:00:49.000000000 -0500
  3683. +++ linux-libc-headers-2.6.8.0/include/linux/compat.h 2004-08-26 05:41:49.000000000 -0500
  3684. @@ -78,9 +78,9 @@
  3685. };
  3686. struct compat_dirent {
  3687. - u32 d_ino;
  3688. + __u32 d_ino;
  3689. compat_off_t d_off;
  3690. - u16 d_reclen;
  3691. + __u16 d_reclen;
  3692. char d_name[256];
  3693. };
  3694. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/console.h linux-libc-headers-2.6.8.0/include/linux/console.h
  3695. --- linux-libc-headers-2.6.8.0-dist/include/linux/console.h 2004-08-18 13:16:02.000000000 -0500
  3696. +++ linux-libc-headers-2.6.8.0/include/linux/console.h 2004-08-26 05:41:49.000000000 -0500
  3697. @@ -49,9 +49,9 @@
  3698. int (*con_scrolldelta)(struct vc_data *, int);
  3699. int (*con_set_origin)(struct vc_data *);
  3700. void (*con_save_screen)(struct vc_data *);
  3701. - u8 (*con_build_attr)(struct vc_data *, u8, u8, u8, u8, u8);
  3702. - void (*con_invert_region)(struct vc_data *, u16 *, int);
  3703. - u16 *(*con_screen_pos)(struct vc_data *, int);
  3704. + __u8 (*con_build_attr)(struct vc_data *, __u8, __u8, __u8, __u8, __u8);
  3705. + void (*con_invert_region)(struct vc_data *, __u16 *, int);
  3706. + __u16 *(*con_screen_pos)(struct vc_data *, int);
  3707. unsigned long (*con_getxy)(struct vc_data *, unsigned long, int *, int *);
  3708. };
  3709. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/cpufreq.h linux-libc-headers-2.6.8.0/include/linux/cpufreq.h
  3710. --- linux-libc-headers-2.6.8.0-dist/include/linux/cpufreq.h 2004-06-23 16:52:53.000000000 -0500
  3711. +++ linux-libc-headers-2.6.8.0/include/linux/cpufreq.h 2004-08-26 05:41:49.000000000 -0500
  3712. @@ -103,7 +103,7 @@
  3713. unsigned int cpu; /* cpu nr */
  3714. unsigned int old;
  3715. unsigned int new;
  3716. - u8 flags; /* flags of cpufreq_driver, see below. */
  3717. + __u8 flags; /* flags of cpufreq_driver, see below. */
  3718. };
  3719. @@ -120,13 +120,13 @@
  3720. {
  3721. #if BITS_PER_LONG == 32
  3722. - u64 result = ((u64) old) * ((u64) mult);
  3723. + __u64 result = ((__u64) old) * ((__u64) mult);
  3724. do_div(result, div);
  3725. return (unsigned long) result;
  3726. #elif BITS_PER_LONG == 64
  3727. - unsigned long result = old * ((u64) mult);
  3728. + unsigned long result = old * ((__u64) mult);
  3729. result /= div;
  3730. return result;
  3731. @@ -178,7 +178,7 @@
  3732. struct cpufreq_driver {
  3733. struct module *owner;
  3734. char name[CPUFREQ_NAME_LEN];
  3735. - u8 flags;
  3736. + __u8 flags;
  3737. /* needed by all drivers */
  3738. int (*init) (struct cpufreq_policy *policy);
  3739. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/cramfs_fs.h linux-libc-headers-2.6.8.0/include/linux/cramfs_fs.h
  3740. --- linux-libc-headers-2.6.8.0-dist/include/linux/cramfs_fs.h 2004-01-05 12:42:27.000000000 -0600
  3741. +++ linux-libc-headers-2.6.8.0/include/linux/cramfs_fs.h 2004-08-26 05:41:49.000000000 -0500
  3742. @@ -2,9 +2,9 @@
  3743. #define __CRAMFS_H
  3744. -typedef unsigned char u8;
  3745. -typedef unsigned short u16;
  3746. -typedef unsigned int u32;
  3747. +typedef unsigned char __u8;
  3748. +typedef unsigned short __u16;
  3749. +typedef unsigned int __u32;
  3750. #define CRAMFS_MAGIC 0x28cd3d45 /* some random number */
  3751. @@ -31,9 +31,9 @@
  3752. * Reasonably terse representation of the inode data.
  3753. */
  3754. struct cramfs_inode {
  3755. - u32 mode:CRAMFS_MODE_WIDTH, uid:CRAMFS_UID_WIDTH;
  3756. + __u32 mode:CRAMFS_MODE_WIDTH, uid:CRAMFS_UID_WIDTH;
  3757. /* SIZE for device files is i_rdev */
  3758. - u32 size:CRAMFS_SIZE_WIDTH, gid:CRAMFS_GID_WIDTH;
  3759. + __u32 size:CRAMFS_SIZE_WIDTH, gid:CRAMFS_GID_WIDTH;
  3760. /* NAMELEN is the length of the file name, divided by 4 and
  3761. rounded up. (cramfs doesn't support hard links.) */
  3762. /* OFFSET: For symlinks and non-empty regular files, this
  3763. @@ -42,27 +42,27 @@
  3764. see README). For non-empty directories it is the offset
  3765. (divided by 4) of the inode of the first file in that
  3766. directory. For anything else, offset is zero. */
  3767. - u32 namelen:CRAMFS_NAMELEN_WIDTH, offset:CRAMFS_OFFSET_WIDTH;
  3768. + __u32 namelen:CRAMFS_NAMELEN_WIDTH, offset:CRAMFS_OFFSET_WIDTH;
  3769. };
  3770. struct cramfs_info {
  3771. - u32 crc;
  3772. - u32 edition;
  3773. - u32 blocks;
  3774. - u32 files;
  3775. + __u32 crc;
  3776. + __u32 edition;
  3777. + __u32 blocks;
  3778. + __u32 files;
  3779. };
  3780. /*
  3781. * Superblock information at the beginning of the FS.
  3782. */
  3783. struct cramfs_super {
  3784. - u32 magic; /* 0x28cd3d45 - random number */
  3785. - u32 size; /* length in bytes */
  3786. - u32 flags; /* feature flags */
  3787. - u32 future; /* reserved for future use */
  3788. - u8 signature[16]; /* "Compressed ROMFS" */
  3789. + __u32 magic; /* 0x28cd3d45 - random number */
  3790. + __u32 size; /* length in bytes */
  3791. + __u32 flags; /* feature flags */
  3792. + __u32 future; /* reserved for future use */
  3793. + __u8 signature[16]; /* "Compressed ROMFS" */
  3794. struct cramfs_info fsid; /* unique filesystem info */
  3795. - u8 name[16]; /* user-defined name */
  3796. + __u8 name[16]; /* user-defined name */
  3797. struct cramfs_inode root; /* root inode data */
  3798. };
  3799. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/crc32.h linux-libc-headers-2.6.8.0/include/linux/crc32.h
  3800. --- linux-libc-headers-2.6.8.0-dist/include/linux/crc32.h 2003-12-15 12:46:57.000000000 -0600
  3801. +++ linux-libc-headers-2.6.8.0/include/linux/crc32.h 2004-08-26 05:41:49.000000000 -0500
  3802. @@ -7,9 +7,9 @@
  3803. #include <linux/types.h>
  3804. -extern u32 crc32_le(u32 crc, unsigned char const *p, size_t len);
  3805. -extern u32 crc32_be(u32 crc, unsigned char const *p, size_t len);
  3806. -extern u32 bitreverse(u32 in);
  3807. +extern __u32 crc32_le(__u32 crc, unsigned char const *p, size_t len);
  3808. +extern __u32 crc32_be(__u32 crc, unsigned char const *p, size_t len);
  3809. +extern __u32 bitreverse(__u32 in);
  3810. #define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)data, length)
  3811. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/crypto.h linux-libc-headers-2.6.8.0/include/linux/crypto.h
  3812. --- linux-libc-headers-2.6.8.0-dist/include/linux/crypto.h 2004-04-19 16:13:51.000000000 -0500
  3813. +++ linux-libc-headers-2.6.8.0/include/linux/crypto.h 2004-08-26 05:41:49.000000000 -0500
  3814. @@ -63,28 +63,28 @@
  3815. struct cipher_alg {
  3816. unsigned int cia_min_keysize;
  3817. unsigned int cia_max_keysize;
  3818. - int (*cia_setkey)(void *ctx, const u8 *key,
  3819. - unsigned int keylen, u32 *flags);
  3820. - void (*cia_encrypt)(void *ctx, u8 *dst, const u8 *src);
  3821. - void (*cia_decrypt)(void *ctx, u8 *dst, const u8 *src);
  3822. + int (*cia_setkey)(void *ctx, const __u8 *key,
  3823. + unsigned int keylen, __u32 *flags);
  3824. + void (*cia_encrypt)(void *ctx, __u8 *dst, const __u8 *src);
  3825. + void (*cia_decrypt)(void *ctx, __u8 *dst, const __u8 *src);
  3826. };
  3827. struct digest_alg {
  3828. unsigned int dia_digestsize;
  3829. void (*dia_init)(void *ctx);
  3830. - void (*dia_update)(void *ctx, const u8 *data, unsigned int len);
  3831. - void (*dia_final)(void *ctx, u8 *out);
  3832. - int (*dia_setkey)(void *ctx, const u8 *key,
  3833. - unsigned int keylen, u32 *flags);
  3834. + void (*dia_update)(void *ctx, const __u8 *data, unsigned int len);
  3835. + void (*dia_final)(void *ctx, __u8 *out);
  3836. + int (*dia_setkey)(void *ctx, const __u8 *key,
  3837. + unsigned int keylen, __u32 *flags);
  3838. };
  3839. struct compress_alg {
  3840. int (*coa_init)(void *ctx);
  3841. void (*coa_exit)(void *ctx);
  3842. - int (*coa_compress)(void *ctx, const u8 *src, unsigned int slen,
  3843. - u8 *dst, unsigned int *dlen);
  3844. - int (*coa_decompress)(void *ctx, const u8 *src, unsigned int slen,
  3845. - u8 *dst, unsigned int *dlen);
  3846. + int (*coa_compress)(void *ctx, const __u8 *src, unsigned int slen,
  3847. + __u8 *dst, unsigned int *dlen);
  3848. + int (*coa_decompress)(void *ctx, const __u8 *src, unsigned int slen,
  3849. + __u8 *dst, unsigned int *dlen);
  3850. };
  3851. #define cra_cipher cra_u.cipher
  3852. @@ -93,7 +93,7 @@
  3853. struct crypto_alg {
  3854. struct list_head cra_list;
  3855. - u32 cra_flags;
  3856. + __u32 cra_flags;
  3857. unsigned int cra_blocksize;
  3858. unsigned int cra_ctxsize;
  3859. const char cra_name[CRYPTO_MAX_ALG_NAME];
  3860. @@ -116,7 +116,7 @@
  3861. /*
  3862. * Algorithm query interface.
  3863. */
  3864. -int crypto_alg_available(const char *name, u32 flags);
  3865. +int crypto_alg_available(const char *name, __u32 flags);
  3866. /*
  3867. * Transforms: user-instantiated objects which encapsulate algorithms
  3868. @@ -128,9 +128,9 @@
  3869. struct cipher_tfm {
  3870. void *cit_iv;
  3871. unsigned int cit_ivsize;
  3872. - u32 cit_mode;
  3873. + __u32 cit_mode;
  3874. int (*cit_setkey)(struct crypto_tfm *tfm,
  3875. - const u8 *key, unsigned int keylen);
  3876. + const __u8 *key, unsigned int keylen);
  3877. int (*cit_encrypt)(struct crypto_tfm *tfm,
  3878. struct scatterlist *dst,
  3879. struct scatterlist *src,
  3880. @@ -138,7 +138,7 @@
  3881. int (*cit_encrypt_iv)(struct crypto_tfm *tfm,
  3882. struct scatterlist *dst,
  3883. struct scatterlist *src,
  3884. - unsigned int nbytes, u8 *iv);
  3885. + unsigned int nbytes, __u8 *iv);
  3886. int (*cit_decrypt)(struct crypto_tfm *tfm,
  3887. struct scatterlist *dst,
  3888. struct scatterlist *src,
  3889. @@ -146,19 +146,19 @@
  3890. int (*cit_decrypt_iv)(struct crypto_tfm *tfm,
  3891. struct scatterlist *dst,
  3892. struct scatterlist *src,
  3893. - unsigned int nbytes, u8 *iv);
  3894. - void (*cit_xor_block)(u8 *dst, const u8 *src);
  3895. + unsigned int nbytes, __u8 *iv);
  3896. + void (*cit_xor_block)(__u8 *dst, const __u8 *src);
  3897. };
  3898. struct digest_tfm {
  3899. void (*dit_init)(struct crypto_tfm *tfm);
  3900. void (*dit_update)(struct crypto_tfm *tfm,
  3901. struct scatterlist *sg, unsigned int nsg);
  3902. - void (*dit_final)(struct crypto_tfm *tfm, u8 *out);
  3903. + void (*dit_final)(struct crypto_tfm *tfm, __u8 *out);
  3904. void (*dit_digest)(struct crypto_tfm *tfm, struct scatterlist *sg,
  3905. - unsigned int nsg, u8 *out);
  3906. + unsigned int nsg, __u8 *out);
  3907. int (*dit_setkey)(struct crypto_tfm *tfm,
  3908. - const u8 *key, unsigned int keylen);
  3909. + const __u8 *key, unsigned int keylen);
  3910. #ifdef CONFIG_CRYPTO_HMAC
  3911. void *dit_hmac_block;
  3912. #endif
  3913. @@ -166,11 +166,11 @@
  3914. struct compress_tfm {
  3915. int (*cot_compress)(struct crypto_tfm *tfm,
  3916. - const u8 *src, unsigned int slen,
  3917. - u8 *dst, unsigned int *dlen);
  3918. + const __u8 *src, unsigned int slen,
  3919. + __u8 *dst, unsigned int *dlen);
  3920. int (*cot_decompress)(struct crypto_tfm *tfm,
  3921. - const u8 *src, unsigned int slen,
  3922. - u8 *dst, unsigned int *dlen);
  3923. + const __u8 *src, unsigned int slen,
  3924. + __u8 *dst, unsigned int *dlen);
  3925. };
  3926. #define crt_cipher crt_u.cipher
  3927. @@ -179,7 +179,7 @@
  3928. struct crypto_tfm {
  3929. - u32 crt_flags;
  3930. + __u32 crt_flags;
  3931. union {
  3932. struct cipher_tfm cipher;
  3933. @@ -203,7 +203,7 @@
  3934. * crypto_free_tfm() frees up the transform and any associated resources,
  3935. * then drops the refcount on the associated algorithm.
  3936. */
  3937. -struct crypto_tfm *crypto_alloc_tfm(const char *alg_name, u32 tfm_flags);
  3938. +struct crypto_tfm *crypto_alloc_tfm(const char *alg_name, __u32 tfm_flags);
  3939. void crypto_free_tfm(struct crypto_tfm *tfm);
  3940. /*
  3941. @@ -219,7 +219,7 @@
  3942. return module_name(tfm->__crt_alg->cra_module);
  3943. }
  3944. -static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm)
  3945. +static inline __u32 crypto_tfm_alg_type(struct crypto_tfm *tfm)
  3946. {
  3947. return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK;
  3948. }
  3949. @@ -270,7 +270,7 @@
  3950. tfm->crt_digest.dit_update(tfm, sg, nsg);
  3951. }
  3952. -static inline void crypto_digest_final(struct crypto_tfm *tfm, u8 *out)
  3953. +static inline void crypto_digest_final(struct crypto_tfm *tfm, __u8 *out)
  3954. {
  3955. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST);
  3956. tfm->crt_digest.dit_final(tfm, out);
  3957. @@ -278,14 +278,14 @@
  3958. static inline void crypto_digest_digest(struct crypto_tfm *tfm,
  3959. struct scatterlist *sg,
  3960. - unsigned int nsg, u8 *out)
  3961. + unsigned int nsg, __u8 *out)
  3962. {
  3963. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST);
  3964. tfm->crt_digest.dit_digest(tfm, sg, nsg, out);
  3965. }
  3966. static inline int crypto_digest_setkey(struct crypto_tfm *tfm,
  3967. - const u8 *key, unsigned int keylen)
  3968. + const __u8 *key, unsigned int keylen)
  3969. {
  3970. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST);
  3971. if (tfm->crt_digest.dit_setkey == NULL)
  3972. @@ -294,7 +294,7 @@
  3973. }
  3974. static inline int crypto_cipher_setkey(struct crypto_tfm *tfm,
  3975. - const u8 *key, unsigned int keylen)
  3976. + const __u8 *key, unsigned int keylen)
  3977. {
  3978. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER);
  3979. return tfm->crt_cipher.cit_setkey(tfm, key, keylen);
  3980. @@ -312,7 +312,7 @@
  3981. static inline int crypto_cipher_encrypt_iv(struct crypto_tfm *tfm,
  3982. struct scatterlist *dst,
  3983. struct scatterlist *src,
  3984. - unsigned int nbytes, u8 *iv)
  3985. + unsigned int nbytes, __u8 *iv)
  3986. {
  3987. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER);
  3988. BUG_ON(tfm->crt_cipher.cit_mode == CRYPTO_TFM_MODE_ECB);
  3989. @@ -331,7 +331,7 @@
  3990. static inline int crypto_cipher_decrypt_iv(struct crypto_tfm *tfm,
  3991. struct scatterlist *dst,
  3992. struct scatterlist *src,
  3993. - unsigned int nbytes, u8 *iv)
  3994. + unsigned int nbytes, __u8 *iv)
  3995. {
  3996. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER);
  3997. BUG_ON(tfm->crt_cipher.cit_mode == CRYPTO_TFM_MODE_ECB);
  3998. @@ -339,30 +339,30 @@
  3999. }
  4000. static inline void crypto_cipher_set_iv(struct crypto_tfm *tfm,
  4001. - const u8 *src, unsigned int len)
  4002. + const __u8 *src, unsigned int len)
  4003. {
  4004. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER);
  4005. memcpy(tfm->crt_cipher.cit_iv, src, len);
  4006. }
  4007. static inline void crypto_cipher_get_iv(struct crypto_tfm *tfm,
  4008. - u8 *dst, unsigned int len)
  4009. + __u8 *dst, unsigned int len)
  4010. {
  4011. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER);
  4012. memcpy(dst, tfm->crt_cipher.cit_iv, len);
  4013. }
  4014. static inline int crypto_comp_compress(struct crypto_tfm *tfm,
  4015. - const u8 *src, unsigned int slen,
  4016. - u8 *dst, unsigned int *dlen)
  4017. + const __u8 *src, unsigned int slen,
  4018. + __u8 *dst, unsigned int *dlen)
  4019. {
  4020. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_COMPRESS);
  4021. return tfm->crt_compress.cot_compress(tfm, src, slen, dst, dlen);
  4022. }
  4023. static inline int crypto_comp_decompress(struct crypto_tfm *tfm,
  4024. - const u8 *src, unsigned int slen,
  4025. - u8 *dst, unsigned int *dlen)
  4026. + const __u8 *src, unsigned int slen,
  4027. + __u8 *dst, unsigned int *dlen)
  4028. {
  4029. BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_COMPRESS);
  4030. return tfm->crt_compress.cot_decompress(tfm, src, slen, dst, dlen);
  4031. @@ -372,13 +372,13 @@
  4032. * HMAC support.
  4033. */
  4034. #ifdef CONFIG_CRYPTO_HMAC
  4035. -void crypto_hmac_init(struct crypto_tfm *tfm, u8 *key, unsigned int *keylen);
  4036. +void crypto_hmac_init(struct crypto_tfm *tfm, __u8 *key, unsigned int *keylen);
  4037. void crypto_hmac_update(struct crypto_tfm *tfm,
  4038. struct scatterlist *sg, unsigned int nsg);
  4039. -void crypto_hmac_final(struct crypto_tfm *tfm, u8 *key,
  4040. - unsigned int *keylen, u8 *out);
  4041. -void crypto_hmac(struct crypto_tfm *tfm, u8 *key, unsigned int *keylen,
  4042. - struct scatterlist *sg, unsigned int nsg, u8 *out);
  4043. +void crypto_hmac_final(struct crypto_tfm *tfm, __u8 *key,
  4044. + unsigned int *keylen, __u8 *out);
  4045. +void crypto_hmac(struct crypto_tfm *tfm, __u8 *key, unsigned int *keylen,
  4046. + struct scatterlist *sg, unsigned int nsg, __u8 *out);
  4047. #endif /* CONFIG_CRYPTO_HMAC */
  4048. #endif /* _LINUX_CRYPTO_H */
  4049. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/cycx_drv.h linux-libc-headers-2.6.8.0/include/linux/cycx_drv.h
  4050. --- linux-libc-headers-2.6.8.0-dist/include/linux/cycx_drv.h 2003-12-15 12:46:57.000000000 -0600
  4051. +++ linux-libc-headers-2.6.8.0/include/linux/cycx_drv.h 2004-08-26 05:41:49.000000000 -0500
  4052. @@ -14,9 +14,9 @@
  4053. * ============================================================================
  4054. * 1999/10/23 acme cycxhw_t cleanup
  4055. * 1999/01/03 acme more judicious use of data types...
  4056. -* uclong, ucchar, etc deleted, the u8, u16, u32
  4057. +* uclong, ucchar, etc deleted, the __u8, __u16, __u32
  4058. * types are the portable way to go.
  4059. -* 1999/01/03 acme judicious use of data types... u16, u32, etc
  4060. +* 1999/01/03 acme judicious use of data types... __u16, __u32, etc
  4061. * 1998/12/26 acme FIXED_BUFFERS, CONF_OFFSET,
  4062. * removal of cy_read{bwl}
  4063. * 1998/08/08 acme Initial version.
  4064. @@ -46,18 +46,18 @@
  4065. * @reserved - reserved for future use
  4066. */
  4067. struct cycx_hw {
  4068. - u32 fwid;
  4069. + __u32 fwid;
  4070. int irq;
  4071. void *dpmbase;
  4072. - u32 dpmsize;
  4073. - u32 reserved[5];
  4074. + __u32 dpmsize;
  4075. + __u32 reserved[5];
  4076. };
  4077. /* Function Prototypes */
  4078. -extern int cycx_setup(struct cycx_hw *hw, void *sfm, u32 len);
  4079. +extern int cycx_setup(struct cycx_hw *hw, void *sfm, __u32 len);
  4080. extern int cycx_down(struct cycx_hw *hw);
  4081. -extern int cycx_peek(struct cycx_hw *hw, u32 addr, void *buf, u32 len);
  4082. -extern int cycx_poke(struct cycx_hw *hw, u32 addr, void *buf, u32 len);
  4083. +extern int cycx_peek(struct cycx_hw *hw, __u32 addr, void *buf, __u32 len);
  4084. +extern int cycx_poke(struct cycx_hw *hw, __u32 addr, void *buf, __u32 len);
  4085. extern int cycx_exec(void *addr);
  4086. extern void cycx_inten(struct cycx_hw *hw);
  4087. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/cycx_x25.h linux-libc-headers-2.6.8.0/include/linux/cycx_x25.h
  4088. --- linux-libc-headers-2.6.8.0-dist/include/linux/cycx_x25.h 2003-12-15 12:46:58.000000000 -0600
  4089. +++ linux-libc-headers-2.6.8.0/include/linux/cycx_x25.h 2004-08-26 05:41:49.000000000 -0500
  4090. @@ -38,10 +38,10 @@
  4091. /* Data Structures */
  4092. /* X.25 Command Block. */
  4093. struct cycx_x25_cmd {
  4094. - u16 command PACKED;
  4095. - u16 link PACKED; /* values: 0 or 1 */
  4096. - u16 len PACKED; /* values: 0 thru 0x205 (517) */
  4097. - u32 buf PACKED;
  4098. + __u16 command PACKED;
  4099. + __u16 link PACKED; /* values: 0 or 1 */
  4100. + __u16 len PACKED; /* values: 0 thru 0x205 (517) */
  4101. + __u32 buf PACKED;
  4102. };
  4103. /* Defines for the 'command' field. */
  4104. @@ -92,34 +92,34 @@
  4105. * @flags - see dosx25.doc, in portuguese, for details
  4106. */
  4107. struct cycx_x25_config {
  4108. - u8 link PACKED;
  4109. - u8 speed PACKED;
  4110. - u8 clock PACKED;
  4111. - u8 n2 PACKED;
  4112. - u8 n2win PACKED;
  4113. - u8 n3win PACKED;
  4114. - u8 nvc PACKED;
  4115. - u8 pktlen PACKED;
  4116. - u8 locaddr PACKED;
  4117. - u8 remaddr PACKED;
  4118. - u16 t1 PACKED;
  4119. - u16 t2 PACKED;
  4120. - u8 t21 PACKED;
  4121. - u8 npvc PACKED;
  4122. - u8 t23 PACKED;
  4123. - u8 flags PACKED;
  4124. + __u8 link PACKED;
  4125. + __u8 speed PACKED;
  4126. + __u8 clock PACKED;
  4127. + __u8 n2 PACKED;
  4128. + __u8 n2win PACKED;
  4129. + __u8 n3win PACKED;
  4130. + __u8 nvc PACKED;
  4131. + __u8 pktlen PACKED;
  4132. + __u8 locaddr PACKED;
  4133. + __u8 remaddr PACKED;
  4134. + __u16 t1 PACKED;
  4135. + __u16 t2 PACKED;
  4136. + __u8 t21 PACKED;
  4137. + __u8 npvc PACKED;
  4138. + __u8 t23 PACKED;
  4139. + __u8 flags PACKED;
  4140. };
  4141. struct cycx_x25_stats {
  4142. - u16 rx_crc_errors PACKED;
  4143. - u16 rx_over_errors PACKED;
  4144. - u16 n2_tx_frames PACKED;
  4145. - u16 n2_rx_frames PACKED;
  4146. - u16 tx_timeouts PACKED;
  4147. - u16 rx_timeouts PACKED;
  4148. - u16 n3_tx_packets PACKED;
  4149. - u16 n3_rx_packets PACKED;
  4150. - u16 tx_aborts PACKED;
  4151. - u16 rx_aborts PACKED;
  4152. + __u16 rx_crc_errors PACKED;
  4153. + __u16 rx_over_errors PACKED;
  4154. + __u16 n2_tx_frames PACKED;
  4155. + __u16 n2_rx_frames PACKED;
  4156. + __u16 tx_timeouts PACKED;
  4157. + __u16 rx_timeouts PACKED;
  4158. + __u16 n3_tx_packets PACKED;
  4159. + __u16 n3_rx_packets PACKED;
  4160. + __u16 tx_aborts PACKED;
  4161. + __u16 rx_aborts PACKED;
  4162. };
  4163. #endif /* _CYCX_X25_H */
  4164. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/device.h linux-libc-headers-2.6.8.0/include/linux/device.h
  4165. --- linux-libc-headers-2.6.8.0-dist/include/linux/device.h 2004-08-18 13:16:02.000000000 -0500
  4166. +++ linux-libc-headers-2.6.8.0/include/linux/device.h 2004-08-26 05:41:49.000000000 -0500
  4167. @@ -57,7 +57,7 @@
  4168. struct device * (*add) (struct device * parent, char * bus_id);
  4169. int (*hotplug) (struct device *dev, char **envp,
  4170. int num_envp, char *buffer, int buffer_size);
  4171. - int (*suspend)(struct device * dev, u32 state);
  4172. + int (*suspend)(struct device * dev, __u32 state);
  4173. int (*resume)(struct device * dev);
  4174. };
  4175. @@ -105,8 +105,8 @@
  4176. int (*probe) (struct device * dev);
  4177. int (*remove) (struct device * dev);
  4178. void (*shutdown) (struct device * dev);
  4179. - int (*suspend) (struct device * dev, u32 state, u32 level);
  4180. - int (*resume) (struct device * dev, u32 level);
  4181. + int (*suspend) (struct device * dev, __u32 state, __u32 level);
  4182. + int (*resume) (struct device * dev, __u32 level);
  4183. };
  4184. @@ -262,17 +262,17 @@
  4185. void *platform_data; /* Platform specific data (e.g. ACPI,
  4186. BIOS data relevant to device) */
  4187. struct dev_pm_info power;
  4188. - u32 power_state; /* Current operating state. In
  4189. + __u32 power_state; /* Current operating state. In
  4190. ACPI-speak, this is D0-D3, D0
  4191. being fully functional, and D3
  4192. being off. */
  4193. unsigned char *saved_state; /* saved device state */
  4194. - u32 detach_state; /* State to enter when device is
  4195. + __u32 detach_state; /* State to enter when device is
  4196. detached from its driver. */
  4197. - u64 *dma_mask; /* dma mask (if dma'able device) */
  4198. - u64 coherent_dma_mask;/* Like dma_mask, but for
  4199. + __u64 *dma_mask; /* dma mask (if dma'able device) */
  4200. + __u64 coherent_dma_mask;/* Like dma_mask, but for
  4201. alloc_coherent mappings as
  4202. not all hardware supports
  4203. 64 bit addresses for consistent
  4204. @@ -360,9 +360,9 @@
  4205. struct platform_device {
  4206. char * name;
  4207. - u32 id;
  4208. + __u32 id;
  4209. struct device dev;
  4210. - u32 num_resources;
  4211. + __u32 num_resources;
  4212. struct resource * resource;
  4213. };
  4214. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/divert.h linux-libc-headers-2.6.8.0/include/linux/divert.h
  4215. --- linux-libc-headers-2.6.8.0-dist/include/linux/divert.h 2004-06-09 07:00:49.000000000 -0500
  4216. +++ linux-libc-headers-2.6.8.0/include/linux/divert.h 2004-08-26 05:41:49.000000000 -0500
  4217. @@ -27,10 +27,10 @@
  4218. {
  4219. int divert; /* are we active */
  4220. unsigned int protos; /* protocols */
  4221. - u16 tcp_dst[MAX_DIVERT_PORTS]; /* specific tcp dst ports to divert */
  4222. - u16 tcp_src[MAX_DIVERT_PORTS]; /* specific tcp src ports to divert */
  4223. - u16 udp_dst[MAX_DIVERT_PORTS]; /* specific udp dst ports to divert */
  4224. - u16 udp_src[MAX_DIVERT_PORTS]; /* specific udp src ports to divert */
  4225. + __u16 tcp_dst[MAX_DIVERT_PORTS]; /* specific tcp dst ports to divert */
  4226. + __u16 tcp_src[MAX_DIVERT_PORTS]; /* specific tcp src ports to divert */
  4227. + __u16 udp_dst[MAX_DIVERT_PORTS]; /* specific udp dst ports to divert */
  4228. + __u16 udp_src[MAX_DIVERT_PORTS]; /* specific udp src ports to divert */
  4229. };
  4230. /*
  4231. @@ -40,12 +40,12 @@
  4232. typedef union _divert_cf_arg
  4233. {
  4234. - s16 int16;
  4235. - u16 uint16;
  4236. - s32 int32;
  4237. - u32 uint32;
  4238. - s64 int64;
  4239. - u64 uint64;
  4240. + __s16 int16;
  4241. + __u16 uint16;
  4242. + __s32 int32;
  4243. + __u32 uint32;
  4244. + __s64 int64;
  4245. + __u64 uint64;
  4246. void *ptr;
  4247. } divert_cf_arg;
  4248. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/eeprom.h linux-libc-headers-2.6.8.0/include/linux/eeprom.h
  4249. --- linux-libc-headers-2.6.8.0-dist/include/linux/eeprom.h 2003-12-19 07:05:15.000000000 -0600
  4250. +++ linux-libc-headers-2.6.8.0/include/linux/eeprom.h 2004-08-26 13:26:38.000000000 -0500
  4251. @@ -26,15 +26,15 @@
  4252. unsigned ee_state;
  4253. spinlock_t *lock;
  4254. - u32 *cache;
  4255. + __u32 *cache;
  4256. };
  4257. -u8 eeprom_readb(struct eeprom *ee, unsigned address);
  4258. -void eeprom_read(struct eeprom *ee, unsigned address, u8 *bytes,
  4259. +__u8 eeprom_readb(struct eeprom *ee, unsigned address);
  4260. +void eeprom_read(struct eeprom *ee, unsigned address, __u8 *bytes,
  4261. unsigned count);
  4262. -void eeprom_writeb(struct eeprom *ee, unsigned address, u8 data);
  4263. -void eeprom_write(struct eeprom *ee, unsigned address, u8 *bytes,
  4264. +void eeprom_writeb(struct eeprom *ee, unsigned address, __u8 data);
  4265. +void eeprom_write(struct eeprom *ee, unsigned address, __u8 *bytes,
  4266. unsigned count);
  4267. /* The EEPROM commands include the alway-set leading bit. */
  4268. @@ -56,10 +56,10 @@
  4269. }
  4270. /* foo. put this in a .c file */
  4271. -static inline void eeprom_update(struct eeprom *ee, u32 mask, int pol)
  4272. +static inline void eeprom_update(struct eeprom *ee, __u32 mask, int pol)
  4273. {
  4274. unsigned long flags;
  4275. - u32 data;
  4276. + __u32 data;
  4277. spin_lock_irqsave(ee->lock, flags);
  4278. data = *ee->cache;
  4279. @@ -106,17 +106,17 @@
  4280. eeprom_update(ee, ee->eedi, pol);
  4281. }
  4282. -u16 eeprom_readw(struct eeprom *ee, unsigned address)
  4283. +__u16 eeprom_readw(struct eeprom *ee, unsigned address)
  4284. {
  4285. unsigned i;
  4286. - u16 res = 0;
  4287. + __u16 res = 0;
  4288. eeprom_clk_lo(ee);
  4289. eeprom_update(ee, ee->eesel, 1 ^ !!(ee->polarity & EEPOL_EESEL));
  4290. eeprom_send_addr(ee, address);
  4291. for (i=0; i<16; i++) {
  4292. - u32 data;
  4293. + __u32 data;
  4294. eeprom_clk_hi(ee);
  4295. res <<= 1;
  4296. data = readl(ee->addr);
  4297. @@ -130,6 +130,6 @@
  4298. }
  4299. -void eeprom_writeb(struct eeprom *ee, unsigned address, u8 data)
  4300. +void eeprom_writeb(struct eeprom *ee, unsigned address, __u8 data)
  4301. {
  4302. }
  4303. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/efi.h linux-libc-headers-2.6.8.0/include/linux/efi.h
  4304. --- linux-libc-headers-2.6.8.0-dist/include/linux/efi.h 2004-08-18 13:16:02.000000000 -0500
  4305. +++ linux-libc-headers-2.6.8.0/include/linux/efi.h 2004-08-26 05:42:08.000000000 -0500
  4306. @@ -30,12 +30,12 @@
  4307. #define EFI_NOT_FOUND (14 | (1UL << (BITS_PER_LONG-1)))
  4308. typedef unsigned long efi_status_t;
  4309. -typedef u8 efi_bool_t;
  4310. -typedef u16 efi_char16_t; /* UNICODE character */
  4311. +typedef __u8 efi_bool_t;
  4312. +typedef __u16 efi_char16_t; /* UNICODE character */
  4313. typedef struct {
  4314. - u8 b[16];
  4315. + __u8 b[16];
  4316. } efi_guid_t;
  4317. #define EFI_GUID(a,b,c,d0,d1,d2,d3,d4,d5,d6,d7) \
  4318. @@ -49,11 +49,11 @@
  4319. * Generic EFI table header
  4320. */
  4321. typedef struct {
  4322. - u64 signature;
  4323. - u32 revision;
  4324. - u32 headersize;
  4325. - u32 crc32;
  4326. - u32 reserved;
  4327. + __u64 signature;
  4328. + __u32 revision;
  4329. + __u32 headersize;
  4330. + __u32 crc32;
  4331. + __u32 reserved;
  4332. } efi_table_hdr_t;
  4333. /*
  4334. @@ -78,14 +78,14 @@
  4335. #define EFI_MAX_MEMORY_TYPE 14
  4336. /* Attribute values: */
  4337. -#define EFI_MEMORY_UC ((u64)0x0000000000000001ULL) /* uncached */
  4338. -#define EFI_MEMORY_WC ((u64)0x0000000000000002ULL) /* write-coalescing */
  4339. -#define EFI_MEMORY_WT ((u64)0x0000000000000004ULL) /* write-through */
  4340. -#define EFI_MEMORY_WB ((u64)0x0000000000000008ULL) /* write-back */
  4341. -#define EFI_MEMORY_WP ((u64)0x0000000000001000ULL) /* write-protect */
  4342. -#define EFI_MEMORY_RP ((u64)0x0000000000002000ULL) /* read-protect */
  4343. -#define EFI_MEMORY_XP ((u64)0x0000000000004000ULL) /* execute-protect */
  4344. -#define EFI_MEMORY_RUNTIME ((u64)0x8000000000000000ULL) /* range requires runtime mapping */
  4345. +#define EFI_MEMORY_UC ((__u64)0x0000000000000001ULL) /* uncached */
  4346. +#define EFI_MEMORY_WC ((__u64)0x0000000000000002ULL) /* write-coalescing */
  4347. +#define EFI_MEMORY_WT ((__u64)0x0000000000000004ULL) /* write-through */
  4348. +#define EFI_MEMORY_WB ((__u64)0x0000000000000008ULL) /* write-back */
  4349. +#define EFI_MEMORY_WP ((__u64)0x0000000000001000ULL) /* write-protect */
  4350. +#define EFI_MEMORY_RP ((__u64)0x0000000000002000ULL) /* read-protect */
  4351. +#define EFI_MEMORY_XP ((__u64)0x0000000000004000ULL) /* execute-protect */
  4352. +#define EFI_MEMORY_RUNTIME ((__u64)0x8000000000000000ULL) /* range requires runtime mapping */
  4353. #define EFI_MEMORY_DESCRIPTOR_VERSION 1
  4354. #define EFI_PAGE_SHIFT 12
  4355. @@ -96,14 +96,14 @@
  4356. * the case in ia64. Need to have this fixed in the f/w.
  4357. */
  4358. typedef struct {
  4359. - u32 type;
  4360. - u32 pad;
  4361. - u64 phys_addr;
  4362. - u64 virt_addr;
  4363. - u64 num_pages;
  4364. - u64 attribute;
  4365. + __u32 type;
  4366. + __u32 pad;
  4367. + __u64 phys_addr;
  4368. + __u64 virt_addr;
  4369. + __u64 num_pages;
  4370. + __u64 attribute;
  4371. #if defined (__i386__)
  4372. - u64 pad1;
  4373. + __u64 pad1;
  4374. #endif
  4375. } efi_memory_desc_t;
  4376. @@ -117,23 +117,23 @@
  4377. #define EFI_UNSPECIFIED_TIMEZONE 0x07ff
  4378. typedef struct {
  4379. - u16 year;
  4380. - u8 month;
  4381. - u8 day;
  4382. - u8 hour;
  4383. - u8 minute;
  4384. - u8 second;
  4385. - u8 pad1;
  4386. - u32 nanosecond;
  4387. - s16 timezone;
  4388. - u8 daylight;
  4389. - u8 pad2;
  4390. + __u16 year;
  4391. + __u8 month;
  4392. + __u8 day;
  4393. + __u8 hour;
  4394. + __u8 minute;
  4395. + __u8 second;
  4396. + __u8 pad1;
  4397. + __u32 nanosecond;
  4398. + __s16 timezone;
  4399. + __u8 daylight;
  4400. + __u8 pad2;
  4401. } efi_time_t;
  4402. typedef struct {
  4403. - u32 resolution;
  4404. - u32 accuracy;
  4405. - u8 sets_to_zero;
  4406. + __u32 resolution;
  4407. + __u32 accuracy;
  4408. + __u8 sets_to_zero;
  4409. } efi_time_cap_t;
  4410. /*
  4411. @@ -146,7 +146,7 @@
  4412. /*
  4413. * EFI Runtime Services table
  4414. */
  4415. -#define EFI_RUNTIME_SERVICES_SIGNATURE ((u64)0x5652453544e5552ULL)
  4416. +#define EFI_RUNTIME_SERVICES_SIGNATURE ((__u64)0x5652453544e5552ULL)
  4417. #define EFI_RUNTIME_SERVICES_REVISION 0x00010000
  4418. typedef struct {
  4419. @@ -169,19 +169,19 @@
  4420. typedef efi_status_t efi_get_wakeup_time_t (efi_bool_t *enabled, efi_bool_t *pending,
  4421. efi_time_t *tm);
  4422. typedef efi_status_t efi_set_wakeup_time_t (efi_bool_t enabled, efi_time_t *tm);
  4423. -typedef efi_status_t efi_get_variable_t (efi_char16_t *name, efi_guid_t *vendor, u32 *attr,
  4424. +typedef efi_status_t efi_get_variable_t (efi_char16_t *name, efi_guid_t *vendor, __u32 *attr,
  4425. unsigned long *data_size, void *data);
  4426. typedef efi_status_t efi_get_next_variable_t (unsigned long *name_size, efi_char16_t *name,
  4427. efi_guid_t *vendor);
  4428. typedef efi_status_t efi_set_variable_t (efi_char16_t *name, efi_guid_t *vendor,
  4429. unsigned long attr, unsigned long data_size,
  4430. void *data);
  4431. -typedef efi_status_t efi_get_next_high_mono_count_t (u32 *count);
  4432. +typedef efi_status_t efi_get_next_high_mono_count_t (__u32 *count);
  4433. typedef void efi_reset_system_t (int reset_type, efi_status_t status,
  4434. unsigned long data_size, efi_char16_t *data);
  4435. typedef efi_status_t efi_set_virtual_address_map_t (unsigned long memory_map_size,
  4436. unsigned long descriptor_size,
  4437. - u32 descriptor_version,
  4438. + __u32 descriptor_version,
  4439. efi_memory_desc_t *virtual_map);
  4440. /*
  4441. @@ -219,13 +219,13 @@
  4442. unsigned long table;
  4443. } efi_config_table_t;
  4444. -#define EFI_SYSTEM_TABLE_SIGNATURE ((u64)0x5453595320494249ULL)
  4445. +#define EFI_SYSTEM_TABLE_SIGNATURE ((__u64)0x5453595320494249ULL)
  4446. #define EFI_SYSTEM_TABLE_REVISION ((1 << 16) | 00)
  4447. typedef struct {
  4448. efi_table_hdr_t hdr;
  4449. unsigned long fw_vendor; /* physical addr of CHAR16 vendor string */
  4450. - u32 fw_revision;
  4451. + __u32 fw_revision;
  4452. unsigned long con_in_handle;
  4453. unsigned long con_in;
  4454. unsigned long con_out_handle;
  4455. @@ -293,9 +293,9 @@
  4456. extern void efi_memmap_walk (efi_freemem_callback_t callback, void *arg);
  4457. extern void efi_gettimeofday (struct timespec *ts);
  4458. extern void efi_enter_virtual_mode (void); /* switch EFI to virtual mode, if possible */
  4459. -extern u64 efi_get_iobase (void);
  4460. -extern u32 efi_mem_type (unsigned long phys_addr);
  4461. -extern u64 efi_mem_attributes (unsigned long phys_addr);
  4462. +extern __u64 efi_get_iobase (void);
  4463. +extern __u32 efi_mem_type (unsigned long phys_addr);
  4464. +extern __u64 efi_mem_attributes (unsigned long phys_addr);
  4465. extern int __init efi_uart_console_only (void);
  4466. extern void efi_initialize_iomem_resources(struct resource *code_resource,
  4467. struct resource *data_resource);
  4468. @@ -368,9 +368,9 @@
  4469. #define EFI_DEV_END_ENTIRE 0xFF
  4470. struct efi_generic_dev_path {
  4471. - u8 type;
  4472. - u8 sub_type;
  4473. - u16 length;
  4474. + __u8 type;
  4475. + __u8 sub_type;
  4476. + __u16 length;
  4477. } __attribute ((packed));
  4478. #endif /* _LINUX_EFI_H */
  4479. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/eisa.h linux-libc-headers-2.6.8.0/include/linux/eisa.h
  4480. --- linux-libc-headers-2.6.8.0-dist/include/linux/eisa.h 2003-12-15 12:46:58.000000000 -0600
  4481. +++ linux-libc-headers-2.6.8.0/include/linux/eisa.h 2004-08-26 05:42:08.000000000 -0500
  4482. @@ -43,7 +43,7 @@
  4483. int state;
  4484. unsigned long base_addr;
  4485. struct resource res[EISA_MAX_RESOURCES];
  4486. - u64 dma_mask;
  4487. + __u64 dma_mask;
  4488. struct device dev; /* generic device */
  4489. #ifdef CONFIG_EISA_NAMES
  4490. char pretty_name[DEVICE_NAME_SIZE];
  4491. @@ -91,7 +91,7 @@
  4492. unsigned long bus_base_addr;
  4493. int slots; /* Max slot number */
  4494. int force_probe; /* Probe even when no slot 0 */
  4495. - u64 dma_mask; /* from bridge device */
  4496. + __u64 dma_mask; /* from bridge device */
  4497. int bus_nr; /* Set by eisa_root_register */
  4498. struct resource eisa_root_res; /* ditto */
  4499. };
  4500. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/ethtool.h linux-libc-headers-2.6.8.0/include/linux/ethtool.h
  4501. --- linux-libc-headers-2.6.8.0-dist/include/linux/ethtool.h 2004-06-23 16:52:54.000000000 -0500
  4502. +++ linux-libc-headers-2.6.8.0/include/linux/ethtool.h 2004-08-26 13:29:11.000000000 -0500
  4503. @@ -15,24 +15,24 @@
  4504. /* This should work for both 32 and 64 bit userland. */
  4505. struct ethtool_cmd {
  4506. - u32 cmd;
  4507. - u32 supported; /* Features this interface supports */
  4508. - u32 advertising; /* Features this interface advertises */
  4509. - u16 speed; /* The forced speed, 10Mb, 100Mb, gigabit */
  4510. - u8 duplex; /* Duplex, half or full */
  4511. - u8 port; /* Which connector port */
  4512. - u8 phy_address;
  4513. - u8 transceiver; /* Which transceiver to use */
  4514. - u8 autoneg; /* Enable or disable autonegotiation */
  4515. - u32 maxtxpkt; /* Tx pkts before generating tx int */
  4516. - u32 maxrxpkt; /* Rx pkts before generating rx int */
  4517. - u32 reserved[4];
  4518. + __u32 cmd;
  4519. + __u32 supported; /* Features this interface supports */
  4520. + __u32 advertising; /* Features this interface advertises */
  4521. + __u16 speed; /* The forced speed, 10Mb, 100Mb, gigabit */
  4522. + __u8 duplex; /* Duplex, half or full */
  4523. + __u8 port; /* Which connector port */
  4524. + __u8 phy_address;
  4525. + __u8 transceiver; /* Which transceiver to use */
  4526. + __u8 autoneg; /* Enable or disable autonegotiation */
  4527. + __u32 maxtxpkt; /* Tx pkts before generating tx int */
  4528. + __u32 maxrxpkt; /* Rx pkts before generating rx int */
  4529. + __u32 reserved[4];
  4530. };
  4531. #define ETHTOOL_BUSINFO_LEN 32
  4532. /* these strings are set to whatever the driver author decides... */
  4533. struct ethtool_drvinfo {
  4534. - u32 cmd;
  4535. + __u32 cmd;
  4536. char driver[32]; /* driver short name, "tulip", "eepro100" */
  4537. char version[32]; /* driver version string */
  4538. char fw_version[32]; /* firmware version string, if applicable */
  4539. @@ -40,53 +40,53 @@
  4540. /* For PCI devices, use pci_name(pci_dev). */
  4541. char reserved1[32];
  4542. char reserved2[16];
  4543. - u32 n_stats; /* number of u64's from ETHTOOL_GSTATS */
  4544. - u32 testinfo_len;
  4545. - u32 eedump_len; /* Size of data from ETHTOOL_GEEPROM (bytes) */
  4546. - u32 regdump_len; /* Size of data from ETHTOOL_GREGS (bytes) */
  4547. + __u32 n_stats; /* number of __u64's from ETHTOOL_GSTATS */
  4548. + __u32 testinfo_len;
  4549. + __u32 eedump_len; /* Size of data from ETHTOOL_GEEPROM (bytes) */
  4550. + __u32 regdump_len; /* Size of data from ETHTOOL_GREGS (bytes) */
  4551. };
  4552. #define SOPASS_MAX 6
  4553. /* wake-on-lan settings */
  4554. struct ethtool_wolinfo {
  4555. - u32 cmd;
  4556. - u32 supported;
  4557. - u32 wolopts;
  4558. - u8 sopass[SOPASS_MAX]; /* SecureOn(tm) password */
  4559. + __u32 cmd;
  4560. + __u32 supported;
  4561. + __u32 wolopts;
  4562. + __u8 sopass[SOPASS_MAX]; /* SecureOn(tm) password */
  4563. };
  4564. /* for passing single values */
  4565. struct ethtool_value {
  4566. - u32 cmd;
  4567. - u32 data;
  4568. + __u32 cmd;
  4569. + __u32 data;
  4570. };
  4571. /* for passing big chunks of data */
  4572. struct ethtool_regs {
  4573. - u32 cmd;
  4574. - u32 version; /* driver-specific, indicates different chips/revs */
  4575. - u32 len; /* bytes */
  4576. - u8 data[0];
  4577. + __u32 cmd;
  4578. + __u32 version; /* driver-specific, indicates different chips/revs */
  4579. + __u32 len; /* bytes */
  4580. + __u8 data[0];
  4581. };
  4582. /* for passing EEPROM chunks */
  4583. struct ethtool_eeprom {
  4584. - u32 cmd;
  4585. - u32 magic;
  4586. - u32 offset; /* in bytes */
  4587. - u32 len; /* in bytes */
  4588. - u8 data[0];
  4589. + __u32 cmd;
  4590. + __u32 magic;
  4591. + __u32 offset; /* in bytes */
  4592. + __u32 len; /* in bytes */
  4593. + __u8 data[0];
  4594. };
  4595. /* for configuring coalescing parameters of chip */
  4596. struct ethtool_coalesce {
  4597. - u32 cmd; /* ETHTOOL_{G,S}COALESCE */
  4598. + __u32 cmd; /* ETHTOOL_{G,S}COALESCE */
  4599. /* How many usecs to delay an RX interrupt after
  4600. * a packet arrives. If 0, only rx_max_coalesced_frames
  4601. * is used.
  4602. */
  4603. - u32 rx_coalesce_usecs;
  4604. + __u32 rx_coalesce_usecs;
  4605. /* How many packets to delay an RX interrupt after
  4606. * a packet arrives. If 0, only rx_coalesce_usecs is
  4607. @@ -94,21 +94,21 @@
  4608. * to zero as this would cause RX interrupts to never be
  4609. * generated.
  4610. */
  4611. - u32 rx_max_coalesced_frames;
  4612. + __u32 rx_max_coalesced_frames;
  4613. /* Same as above two parameters, except that these values
  4614. * apply while an IRQ is being serviced by the host. Not
  4615. * all cards support this feature and the values are ignored
  4616. * in that case.
  4617. */
  4618. - u32 rx_coalesce_usecs_irq;
  4619. - u32 rx_max_coalesced_frames_irq;
  4620. + __u32 rx_coalesce_usecs_irq;
  4621. + __u32 rx_max_coalesced_frames_irq;
  4622. /* How many usecs to delay a TX interrupt after
  4623. * a packet is sent. If 0, only tx_max_coalesced_frames
  4624. * is used.
  4625. */
  4626. - u32 tx_coalesce_usecs;
  4627. + __u32 tx_coalesce_usecs;
  4628. /* How many packets to delay a TX interrupt after
  4629. * a packet is sent. If 0, only tx_coalesce_usecs is
  4630. @@ -116,22 +116,22 @@
  4631. * to zero as this would cause TX interrupts to never be
  4632. * generated.
  4633. */
  4634. - u32 tx_max_coalesced_frames;
  4635. + __u32 tx_max_coalesced_frames;
  4636. /* Same as above two parameters, except that these values
  4637. * apply while an IRQ is being serviced by the host. Not
  4638. * all cards support this feature and the values are ignored
  4639. * in that case.
  4640. */
  4641. - u32 tx_coalesce_usecs_irq;
  4642. - u32 tx_max_coalesced_frames_irq;
  4643. + __u32 tx_coalesce_usecs_irq;
  4644. + __u32 tx_max_coalesced_frames_irq;
  4645. /* How many usecs to delay in-memory statistics
  4646. * block updates. Some drivers do not have an in-memory
  4647. * statistic block, and in such cases this value is ignored.
  4648. * This value must not be zero.
  4649. */
  4650. - u32 stats_block_coalesce_usecs;
  4651. + __u32 stats_block_coalesce_usecs;
  4652. /* Adaptive RX/TX coalescing is an algorithm implemented by
  4653. * some drivers to improve latency under low packet rates and
  4654. @@ -140,18 +140,18 @@
  4655. * not implemented by the driver causes these values to be
  4656. * silently ignored.
  4657. */
  4658. - u32 use_adaptive_rx_coalesce;
  4659. - u32 use_adaptive_tx_coalesce;
  4660. + __u32 use_adaptive_rx_coalesce;
  4661. + __u32 use_adaptive_tx_coalesce;
  4662. /* When the packet rate (measured in packets per second)
  4663. * is below pkt_rate_low, the {rx,tx}_*_low parameters are
  4664. * used.
  4665. */
  4666. - u32 pkt_rate_low;
  4667. - u32 rx_coalesce_usecs_low;
  4668. - u32 rx_max_coalesced_frames_low;
  4669. - u32 tx_coalesce_usecs_low;
  4670. - u32 tx_max_coalesced_frames_low;
  4671. + __u32 pkt_rate_low;
  4672. + __u32 rx_coalesce_usecs_low;
  4673. + __u32 rx_max_coalesced_frames_low;
  4674. + __u32 tx_coalesce_usecs_low;
  4675. + __u32 tx_max_coalesced_frames_low;
  4676. /* When the packet rate is below pkt_rate_high but above
  4677. * pkt_rate_low (both measured in packets per second) the
  4678. @@ -162,43 +162,43 @@
  4679. * is above pkt_rate_high, the {rx,tx}_*_high parameters are
  4680. * used.
  4681. */
  4682. - u32 pkt_rate_high;
  4683. - u32 rx_coalesce_usecs_high;
  4684. - u32 rx_max_coalesced_frames_high;
  4685. - u32 tx_coalesce_usecs_high;
  4686. - u32 tx_max_coalesced_frames_high;
  4687. + __u32 pkt_rate_high;
  4688. + __u32 rx_coalesce_usecs_high;
  4689. + __u32 rx_max_coalesced_frames_high;
  4690. + __u32 tx_coalesce_usecs_high;
  4691. + __u32 tx_max_coalesced_frames_high;
  4692. /* How often to do adaptive coalescing packet rate sampling,
  4693. * measured in seconds. Must not be zero.
  4694. */
  4695. - u32 rate_sample_interval;
  4696. + __u32 rate_sample_interval;
  4697. };
  4698. /* for configuring RX/TX ring parameters */
  4699. struct ethtool_ringparam {
  4700. - u32 cmd; /* ETHTOOL_{G,S}RINGPARAM */
  4701. + __u32 cmd; /* ETHTOOL_{G,S}RINGPARAM */
  4702. /* Read only attributes. These indicate the maximum number
  4703. * of pending RX/TX ring entries the driver will allow the
  4704. * user to set.
  4705. */
  4706. - u32 rx_max_pending;
  4707. - u32 rx_mini_max_pending;
  4708. - u32 rx_jumbo_max_pending;
  4709. - u32 tx_max_pending;
  4710. + __u32 rx_max_pending;
  4711. + __u32 rx_mini_max_pending;
  4712. + __u32 rx_jumbo_max_pending;
  4713. + __u32 tx_max_pending;
  4714. /* Values changeable by the user. The valid values are
  4715. * in the range 1 to the "*_max_pending" counterpart above.
  4716. */
  4717. - u32 rx_pending;
  4718. - u32 rx_mini_pending;
  4719. - u32 rx_jumbo_pending;
  4720. - u32 tx_pending;
  4721. + __u32 rx_pending;
  4722. + __u32 rx_mini_pending;
  4723. + __u32 rx_jumbo_pending;
  4724. + __u32 tx_pending;
  4725. };
  4726. /* for configuring link flow control parameters */
  4727. struct ethtool_pauseparam {
  4728. - u32 cmd; /* ETHTOOL_{G,S}PAUSEPARAM */
  4729. + __u32 cmd; /* ETHTOOL_{G,S}PAUSEPARAM */
  4730. /* If the link is being auto-negotiated (via ethtool_cmd.autoneg
  4731. * being true) the user may set 'autonet' here non-zero to have the
  4732. @@ -210,9 +210,9 @@
  4733. * then {rx,tx}_pause force the driver to use/not-use pause
  4734. * flow control.
  4735. */
  4736. - u32 autoneg;
  4737. - u32 rx_pause;
  4738. - u32 tx_pause;
  4739. + __u32 autoneg;
  4740. + __u32 rx_pause;
  4741. + __u32 tx_pause;
  4742. };
  4743. #define ETH_GSTRING_LEN 32
  4744. @@ -223,10 +223,10 @@
  4745. /* for passing string sets for data tagging */
  4746. struct ethtool_gstrings {
  4747. - u32 cmd; /* ETHTOOL_GSTRINGS */
  4748. - u32 string_set; /* string set id e.c. ETH_SS_TEST, etc*/
  4749. - u32 len; /* number of strings in the string set */
  4750. - u8 data[0];
  4751. + __u32 cmd; /* ETHTOOL_GSTRINGS */
  4752. + __u32 string_set; /* string set id e.c. ETH_SS_TEST, etc*/
  4753. + __u32 len; /* number of strings in the string set */
  4754. + __u8 data[0];
  4755. };
  4756. enum ethtool_test_flags {
  4757. @@ -236,30 +236,30 @@
  4758. /* for requesting NIC test and getting results*/
  4759. struct ethtool_test {
  4760. - u32 cmd; /* ETHTOOL_TEST */
  4761. - u32 flags; /* ETH_TEST_FL_xxx */
  4762. - u32 reserved;
  4763. - u32 len; /* result length, in number of u64 elements */
  4764. - u64 data[0];
  4765. + __u32 cmd; /* ETHTOOL_TEST */
  4766. + __u32 flags; /* ETH_TEST_FL_xxx */
  4767. + __u32 reserved;
  4768. + __u32 len; /* result length, in number of __u64 elements */
  4769. + __u64 data[0];
  4770. };
  4771. /* for dumping NIC-specific statistics */
  4772. struct ethtool_stats {
  4773. - u32 cmd; /* ETHTOOL_GSTATS */
  4774. - u32 n_stats; /* number of u64's being returned */
  4775. - u64 data[0];
  4776. + __u32 cmd; /* ETHTOOL_GSTATS */
  4777. + __u32 n_stats; /* number of __u64's being returned */
  4778. + __u64 data[0];
  4779. };
  4780. struct net_device;
  4781. /* Some generic methods drivers may use in their ethtool_ops */
  4782. -u32 ethtool_op_get_link(struct net_device *dev);
  4783. -u32 ethtool_op_get_tx_csum(struct net_device *dev);
  4784. -int ethtool_op_set_tx_csum(struct net_device *dev, u32 data);
  4785. -u32 ethtool_op_get_sg(struct net_device *dev);
  4786. -int ethtool_op_set_sg(struct net_device *dev, u32 data);
  4787. -u32 ethtool_op_get_tso(struct net_device *dev);
  4788. -int ethtool_op_set_tso(struct net_device *dev, u32 data);
  4789. +__u32 ethtool_op_get_link(struct net_device *dev);
  4790. +__u32 ethtool_op_get_tx_csum(struct net_device *dev);
  4791. +int ethtool_op_set_tx_csum(struct net_device *dev, __u32 data);
  4792. +__u32 ethtool_op_get_sg(struct net_device *dev);
  4793. +int ethtool_op_set_sg(struct net_device *dev, __u32 data);
  4794. +__u32 ethtool_op_get_tso(struct net_device *dev);
  4795. +int ethtool_op_set_tso(struct net_device *dev, __u32 data);
  4796. /**
  4797. * &ethtool_ops - Alter and report network device settings
  4798. @@ -324,33 +324,33 @@
  4799. void (*get_regs)(struct net_device *, struct ethtool_regs *, void *);
  4800. void (*get_wol)(struct net_device *, struct ethtool_wolinfo *);
  4801. int (*set_wol)(struct net_device *, struct ethtool_wolinfo *);
  4802. - u32 (*get_msglevel)(struct net_device *);
  4803. - void (*set_msglevel)(struct net_device *, u32);
  4804. + __u32 (*get_msglevel)(struct net_device *);
  4805. + void (*set_msglevel)(struct net_device *, __u32);
  4806. int (*nway_reset)(struct net_device *);
  4807. - u32 (*get_link)(struct net_device *);
  4808. + __u32 (*get_link)(struct net_device *);
  4809. int (*get_eeprom_len)(struct net_device *);
  4810. - int (*get_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
  4811. - int (*set_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
  4812. + int (*get_eeprom)(struct net_device *, struct ethtool_eeprom *, __u8 *);
  4813. + int (*set_eeprom)(struct net_device *, struct ethtool_eeprom *, __u8 *);
  4814. int (*get_coalesce)(struct net_device *, struct ethtool_coalesce *);
  4815. int (*set_coalesce)(struct net_device *, struct ethtool_coalesce *);
  4816. void (*get_ringparam)(struct net_device *, struct ethtool_ringparam *);
  4817. int (*set_ringparam)(struct net_device *, struct ethtool_ringparam *);
  4818. void (*get_pauseparam)(struct net_device *, struct ethtool_pauseparam*);
  4819. int (*set_pauseparam)(struct net_device *, struct ethtool_pauseparam*);
  4820. - u32 (*get_rx_csum)(struct net_device *);
  4821. - int (*set_rx_csum)(struct net_device *, u32);
  4822. - u32 (*get_tx_csum)(struct net_device *);
  4823. - int (*set_tx_csum)(struct net_device *, u32);
  4824. - u32 (*get_sg)(struct net_device *);
  4825. - int (*set_sg)(struct net_device *, u32);
  4826. - u32 (*get_tso)(struct net_device *);
  4827. - int (*set_tso)(struct net_device *, u32);
  4828. + __u32 (*get_rx_csum)(struct net_device *);
  4829. + int (*set_rx_csum)(struct net_device *, __u32);
  4830. + __u32 (*get_tx_csum)(struct net_device *);
  4831. + int (*set_tx_csum)(struct net_device *, __u32);
  4832. + __u32 (*get_sg)(struct net_device *);
  4833. + int (*set_sg)(struct net_device *, __u32);
  4834. + __u32 (*get_tso)(struct net_device *);
  4835. + int (*set_tso)(struct net_device *, __u32);
  4836. int (*self_test_count)(struct net_device *);
  4837. - void (*self_test)(struct net_device *, struct ethtool_test *, u64 *);
  4838. - void (*get_strings)(struct net_device *, u32 stringset, u8 *);
  4839. - int (*phys_id)(struct net_device *, u32);
  4840. + void (*self_test)(struct net_device *, struct ethtool_test *, __u64 *);
  4841. + void (*get_strings)(struct net_device *, __u32 stringset, __u8 *);
  4842. + int (*phys_id)(struct net_device *, __u32);
  4843. int (*get_stats_count)(struct net_device *);
  4844. - void (*get_ethtool_stats)(struct net_device *, struct ethtool_stats *, u64 *);
  4845. + void (*get_ethtool_stats)(struct net_device *, struct ethtool_stats *, __u64 *);
  4846. int (*begin)(struct net_device *);
  4847. void (*complete)(struct net_device *);
  4848. };
  4849. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/firmware.h linux-libc-headers-2.6.8.0/include/linux/firmware.h
  4850. --- linux-libc-headers-2.6.8.0-dist/include/linux/firmware.h 2003-12-15 12:46:58.000000000 -0600
  4851. +++ linux-libc-headers-2.6.8.0/include/linux/firmware.h 2004-08-26 05:42:08.000000000 -0500
  4852. @@ -5,7 +5,7 @@
  4853. #define FIRMWARE_NAME_MAX 30
  4854. struct firmware {
  4855. size_t size;
  4856. - u8 *data;
  4857. + __u8 *data;
  4858. };
  4859. int request_firmware(const struct firmware **fw, const char *name,
  4860. struct device *device);
  4861. @@ -15,5 +15,5 @@
  4862. void (*cont)(const struct firmware *fw, void *context));
  4863. void release_firmware(const struct firmware *fw);
  4864. -void register_firmware(const char *name, const u8 *data, size_t size);
  4865. +void register_firmware(const char *name, const __u8 *data, size_t size);
  4866. #endif
  4867. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/fs.h linux-libc-headers-2.6.8.0/include/linux/fs.h
  4868. --- linux-libc-headers-2.6.8.0-dist/include/linux/fs.h 2004-08-18 13:16:02.000000000 -0500
  4869. +++ linux-libc-headers-2.6.8.0/include/linux/fs.h 2004-08-26 05:42:08.000000000 -0500
  4870. @@ -198,7 +198,7 @@
  4871. /* A jump here: 108-111 have been used for various private purposes. */
  4872. #define BLKBSZGET _IOR(0x12,112,size_t)
  4873. #define BLKBSZSET _IOW(0x12,113,size_t)
  4874. -#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size in bytes (u64 *arg) */
  4875. +#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size in bytes (__u64 *arg) */
  4876. #define BMAP_IOCTL 1 /* obsolete - kept for compatibility */
  4877. #define FIBMAP _IO(0x00,1) /* bmap access */
  4878. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/i2c.h linux-libc-headers-2.6.8.0/include/linux/i2c.h
  4879. --- linux-libc-headers-2.6.8.0-dist/include/linux/i2c.h 2004-06-23 16:52:54.000000000 -0500
  4880. +++ linux-libc-headers-2.6.8.0/include/linux/i2c.h 2004-08-26 05:42:08.000000000 -0500
  4881. @@ -70,36 +70,36 @@
  4882. and probably just as fast.
  4883. Note that we use i2c_adapter here, because you do not need a specific
  4884. smbus adapter to call this function. */
  4885. -extern s32 i2c_smbus_xfer (struct i2c_adapter * adapter, u16 addr,
  4886. +extern __s32 i2c_smbus_xfer (struct i2c_adapter * adapter, __u16 addr,
  4887. unsigned short flags,
  4888. - char read_write, u8 command, int size,
  4889. + char read_write, __u8 command, int size,
  4890. union i2c_smbus_data * data);
  4891. /* Now follow the 'nice' access routines. These also document the calling
  4892. conventions of smbus_access. */
  4893. -extern s32 i2c_smbus_write_quick(struct i2c_client * client, u8 value);
  4894. -extern s32 i2c_smbus_read_byte(struct i2c_client * client);
  4895. -extern s32 i2c_smbus_write_byte(struct i2c_client * client, u8 value);
  4896. -extern s32 i2c_smbus_read_byte_data(struct i2c_client * client, u8 command);
  4897. -extern s32 i2c_smbus_write_byte_data(struct i2c_client * client,
  4898. - u8 command, u8 value);
  4899. -extern s32 i2c_smbus_read_word_data(struct i2c_client * client, u8 command);
  4900. -extern s32 i2c_smbus_write_word_data(struct i2c_client * client,
  4901. - u8 command, u16 value);
  4902. -extern s32 i2c_smbus_process_call(struct i2c_client * client,
  4903. - u8 command, u16 value);
  4904. +extern __s32 i2c_smbus_write_quick(struct i2c_client * client, __u8 value);
  4905. +extern __s32 i2c_smbus_read_byte(struct i2c_client * client);
  4906. +extern __s32 i2c_smbus_write_byte(struct i2c_client * client, __u8 value);
  4907. +extern __s32 i2c_smbus_read_byte_data(struct i2c_client * client, __u8 command);
  4908. +extern __s32 i2c_smbus_write_byte_data(struct i2c_client * client,
  4909. + __u8 command, __u8 value);
  4910. +extern __s32 i2c_smbus_read_word_data(struct i2c_client * client, __u8 command);
  4911. +extern __s32 i2c_smbus_write_word_data(struct i2c_client * client,
  4912. + __u8 command, __u16 value);
  4913. +extern __s32 i2c_smbus_process_call(struct i2c_client * client,
  4914. + __u8 command, __u16 value);
  4915. /* Returns the number of read bytes */
  4916. -extern s32 i2c_smbus_read_block_data(struct i2c_client * client,
  4917. - u8 command, u8 *values);
  4918. -extern s32 i2c_smbus_write_block_data(struct i2c_client * client,
  4919. - u8 command, u8 length,
  4920. - u8 *values);
  4921. -extern s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client,
  4922. - u8 command, u8 *values);
  4923. -extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client,
  4924. - u8 command, u8 length,
  4925. - u8 *values);
  4926. +extern __s32 i2c_smbus_read_block_data(struct i2c_client * client,
  4927. + __u8 command, __u8 *values);
  4928. +extern __s32 i2c_smbus_write_block_data(struct i2c_client * client,
  4929. + __u8 command, __u8 length,
  4930. + __u8 *values);
  4931. +extern __s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client,
  4932. + __u8 command, __u8 *values);
  4933. +extern __s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client,
  4934. + __u8 command, __u8 length,
  4935. + __u8 *values);
  4936. /*
  4937. @@ -203,9 +203,9 @@
  4938. using common I2C messages */
  4939. int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg msgs[],
  4940. int num);
  4941. - int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr,
  4942. + int (*smbus_xfer) (struct i2c_adapter *adap, __u16 addr,
  4943. unsigned short flags, char read_write,
  4944. - u8 command, int size, union i2c_smbus_data * data);
  4945. + __u8 command, int size, union i2c_smbus_data * data);
  4946. /* --- these optional/future use for some adapter types.*/
  4947. int (*slave_send)(struct i2c_adapter *,char*,int);
  4948. @@ -215,7 +215,7 @@
  4949. int (*algo_control)(struct i2c_adapter *, unsigned int, unsigned long);
  4950. /* To determine what the adapter supports */
  4951. - u32 (*functionality) (struct i2c_adapter *);
  4952. + __u32 (*functionality) (struct i2c_adapter *);
  4953. };
  4954. /*
  4955. @@ -381,10 +381,10 @@
  4956. /* Return the functionality mask */
  4957. -extern u32 i2c_get_functionality (struct i2c_adapter *adap);
  4958. +extern __u32 i2c_get_functionality (struct i2c_adapter *adap);
  4959. /* Return 1 if adapter supports everything we need, 0 if not. */
  4960. -extern int i2c_check_functionality (struct i2c_adapter *adap, u32 func);
  4961. +extern int i2c_check_functionality (struct i2c_adapter *adap, __u32 func);
  4962. /*
  4963. * I2C Message - used for pure i2c transaction, also from /dev interface
  4964. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/i2o-dev.h linux-libc-headers-2.6.8.0/include/linux/i2o-dev.h
  4965. --- linux-libc-headers-2.6.8.0-dist/include/linux/i2o-dev.h 2004-06-23 16:52:54.000000000 -0500
  4966. +++ linux-libc-headers-2.6.8.0/include/linux/i2o-dev.h 2004-08-26 05:42:08.000000000 -0500
  4967. @@ -29,7 +29,7 @@
  4968. * I2O Control IOCTLs and structures
  4969. */
  4970. #define I2O_MAGIC_NUMBER 'i'
  4971. -#define I2OGETIOPS _IOR(I2O_MAGIC_NUMBER,0,u8[MAX_I2O_CONTROLLERS])
  4972. +#define I2OGETIOPS _IOR(I2O_MAGIC_NUMBER,0,__u8[MAX_I2O_CONTROLLERS])
  4973. #define I2OHRTGET _IOWR(I2O_MAGIC_NUMBER,1,struct i2o_cmd_hrtlct)
  4974. #define I2OLCTGET _IOWR(I2O_MAGIC_NUMBER,2,struct i2o_cmd_hrtlct)
  4975. #define I2OPARMSET _IOWR(I2O_MAGIC_NUMBER,3,struct i2o_cmd_psetget)
  4976. @@ -37,7 +37,7 @@
  4977. #define I2OSWDL _IOWR(I2O_MAGIC_NUMBER,5,struct i2o_sw_xfer)
  4978. #define I2OSWUL _IOWR(I2O_MAGIC_NUMBER,6,struct i2o_sw_xfer)
  4979. #define I2OSWDEL _IOWR(I2O_MAGIC_NUMBER,7,struct i2o_sw_xfer)
  4980. -#define I2OVALIDATE _IOR(I2O_MAGIC_NUMBER,8,u32)
  4981. +#define I2OVALIDATE _IOR(I2O_MAGIC_NUMBER,8,__u32)
  4982. #define I2OHTML _IOWR(I2O_MAGIC_NUMBER,9,struct i2o_html)
  4983. #define I2OEVTREG _IOW(I2O_MAGIC_NUMBER,10,struct i2o_evt_id)
  4984. #define I2OEVTGET _IOR(I2O_MAGIC_NUMBER,11,struct i2o_evt_info)
  4985. @@ -129,65 +129,65 @@
  4986. #define I2O_BUS_CARDBUS 7
  4987. #define I2O_BUS_UNKNOWN 0x80
  4988. -typedef unsigned char u8;
  4989. -typedef unsigned short u16;
  4990. -typedef unsigned int u32;
  4991. +typedef unsigned char __u8;
  4992. +typedef unsigned short __u16;
  4993. +typedef unsigned int __u32;
  4994. typedef struct _i2o_pci_bus
  4995. {
  4996. - u8 PciFunctionNumber;
  4997. - u8 PciDeviceNumber;
  4998. - u8 PciBusNumber;
  4999. - u8 reserved;
  5000. - u16 PciVendorID;
  5001. - u16 PciDeviceID;
  5002. + __u8 PciFunctionNumber;
  5003. + __u8 PciDeviceNumber;
  5004. + __u8 PciBusNumber;
  5005. + __u8 reserved;
  5006. + __u16 PciVendorID;
  5007. + __u16 PciDeviceID;
  5008. } i2o_pci_bus;
  5009. typedef struct _i2o_local_bus
  5010. {
  5011. - u16 LbBaseIOPort;
  5012. - u16 reserved;
  5013. - u32 LbBaseMemoryAddress;
  5014. + __u16 LbBaseIOPort;
  5015. + __u16 reserved;
  5016. + __u32 LbBaseMemoryAddress;
  5017. } i2o_local_bus;
  5018. typedef struct _i2o_isa_bus
  5019. {
  5020. - u16 IsaBaseIOPort;
  5021. - u8 CSN;
  5022. - u8 reserved;
  5023. - u32 IsaBaseMemoryAddress;
  5024. + __u16 IsaBaseIOPort;
  5025. + __u8 CSN;
  5026. + __u8 reserved;
  5027. + __u32 IsaBaseMemoryAddress;
  5028. } i2o_isa_bus;
  5029. typedef struct _i2o_eisa_bus_info
  5030. {
  5031. - u16 EisaBaseIOPort;
  5032. - u8 reserved;
  5033. - u8 EisaSlotNumber;
  5034. - u32 EisaBaseMemoryAddress;
  5035. + __u16 EisaBaseIOPort;
  5036. + __u8 reserved;
  5037. + __u8 EisaSlotNumber;
  5038. + __u32 EisaBaseMemoryAddress;
  5039. } i2o_eisa_bus;
  5040. typedef struct _i2o_mca_bus
  5041. {
  5042. - u16 McaBaseIOPort;
  5043. - u8 reserved;
  5044. - u8 McaSlotNumber;
  5045. - u32 McaBaseMemoryAddress;
  5046. + __u16 McaBaseIOPort;
  5047. + __u8 reserved;
  5048. + __u8 McaSlotNumber;
  5049. + __u32 McaBaseMemoryAddress;
  5050. } i2o_mca_bus;
  5051. typedef struct _i2o_other_bus
  5052. {
  5053. - u16 BaseIOPort;
  5054. - u16 reserved;
  5055. - u32 BaseMemoryAddress;
  5056. + __u16 BaseIOPort;
  5057. + __u16 reserved;
  5058. + __u32 BaseMemoryAddress;
  5059. } i2o_other_bus;
  5060. typedef struct _i2o_hrt_entry
  5061. {
  5062. - u32 adapter_id;
  5063. - u32 parent_tid:12;
  5064. - u32 state:4;
  5065. - u32 bus_num:8;
  5066. - u32 bus_type:8;
  5067. + __u32 adapter_id;
  5068. + __u32 parent_tid:12;
  5069. + __u32 state:4;
  5070. + __u32 bus_num:8;
  5071. + __u32 bus_type:8;
  5072. union
  5073. {
  5074. i2o_pci_bus pci_bus;
  5075. @@ -201,69 +201,69 @@
  5076. typedef struct _i2o_hrt
  5077. {
  5078. - u16 num_entries;
  5079. - u8 entry_len;
  5080. - u8 hrt_version;
  5081. - u32 change_ind;
  5082. + __u16 num_entries;
  5083. + __u8 entry_len;
  5084. + __u8 hrt_version;
  5085. + __u32 change_ind;
  5086. i2o_hrt_entry hrt_entry[1];
  5087. } i2o_hrt;
  5088. typedef struct _i2o_lct_entry
  5089. {
  5090. - u32 entry_size:16;
  5091. - u32 tid:12;
  5092. - u32 reserved:4;
  5093. - u32 change_ind;
  5094. - u32 device_flags;
  5095. - u32 class_id:12;
  5096. - u32 version:4;
  5097. - u32 vendor_id:16;
  5098. - u32 sub_class;
  5099. - u32 user_tid:12;
  5100. - u32 parent_tid:12;
  5101. - u32 bios_info:8;
  5102. - u8 identity_tag[8];
  5103. - u32 event_capabilities;
  5104. + __u32 entry_size:16;
  5105. + __u32 tid:12;
  5106. + __u32 reserved:4;
  5107. + __u32 change_ind;
  5108. + __u32 device_flags;
  5109. + __u32 class_id:12;
  5110. + __u32 version:4;
  5111. + __u32 vendor_id:16;
  5112. + __u32 sub_class;
  5113. + __u32 user_tid:12;
  5114. + __u32 parent_tid:12;
  5115. + __u32 bios_info:8;
  5116. + __u8 identity_tag[8];
  5117. + __u32 event_capabilities;
  5118. } i2o_lct_entry;
  5119. typedef struct _i2o_lct
  5120. {
  5121. - u32 table_size:16;
  5122. - u32 boot_tid:12;
  5123. - u32 lct_ver:4;
  5124. - u32 iop_flags;
  5125. - u32 change_ind;
  5126. + __u32 table_size:16;
  5127. + __u32 boot_tid:12;
  5128. + __u32 lct_ver:4;
  5129. + __u32 iop_flags;
  5130. + __u32 change_ind;
  5131. i2o_lct_entry lct_entry[1];
  5132. } i2o_lct;
  5133. typedef struct _i2o_status_block
  5134. {
  5135. - u16 org_id;
  5136. - u16 reserved;
  5137. - u16 iop_id:12;
  5138. - u16 reserved1:4;
  5139. - u16 host_unit_id;
  5140. - u16 segment_number:12;
  5141. - u16 i2o_version:4;
  5142. - u8 iop_state;
  5143. - u8 msg_type;
  5144. - u16 inbound_frame_size;
  5145. - u8 init_code;
  5146. - u8 reserved2;
  5147. - u32 max_inbound_frames;
  5148. - u32 cur_inbound_frames;
  5149. - u32 max_outbound_frames;
  5150. + __u16 org_id;
  5151. + __u16 reserved;
  5152. + __u16 iop_id:12;
  5153. + __u16 reserved1:4;
  5154. + __u16 host_unit_id;
  5155. + __u16 segment_number:12;
  5156. + __u16 i2o_version:4;
  5157. + __u8 iop_state;
  5158. + __u8 msg_type;
  5159. + __u16 inbound_frame_size;
  5160. + __u8 init_code;
  5161. + __u8 reserved2;
  5162. + __u32 max_inbound_frames;
  5163. + __u32 cur_inbound_frames;
  5164. + __u32 max_outbound_frames;
  5165. char product_id[24];
  5166. - u32 expected_lct_size;
  5167. - u32 iop_capabilities;
  5168. - u32 desired_mem_size;
  5169. - u32 current_mem_size;
  5170. - u32 current_mem_base;
  5171. - u32 desired_io_size;
  5172. - u32 current_io_size;
  5173. - u32 current_io_base;
  5174. - u32 reserved3:24;
  5175. - u32 cmd_status:8;
  5176. + __u32 expected_lct_size;
  5177. + __u32 iop_capabilities;
  5178. + __u32 desired_mem_size;
  5179. + __u32 current_mem_size;
  5180. + __u32 current_mem_base;
  5181. + __u32 desired_io_size;
  5182. + __u32 current_io_size;
  5183. + __u32 current_io_base;
  5184. + __u32 reserved3:24;
  5185. + __u32 cmd_status:8;
  5186. } i2o_status_block;
  5187. /* Event indicator mask flags */
  5188. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/isdn/capilli.h linux-libc-headers-2.6.8.0/include/linux/isdn/capilli.h
  5189. --- linux-libc-headers-2.6.8.0-dist/include/linux/isdn/capilli.h 2004-03-28 07:52:12.000000000 -0600
  5190. +++ linux-libc-headers-2.6.8.0/include/linux/isdn/capilli.h 2004-08-26 13:26:47.000000000 -0500
  5191. @@ -43,20 +43,20 @@
  5192. char *driver_name; /* name of driver */
  5193. int (*load_firmware)(struct capi_ctr *, capiloaddata *);
  5194. void (*reset_ctr)(struct capi_ctr *);
  5195. - void (*register_appl)(struct capi_ctr *, u16 appl,
  5196. + void (*register_appl)(struct capi_ctr *, __u16 appl,
  5197. capi_register_params *);
  5198. - void (*release_appl)(struct capi_ctr *, u16 appl);
  5199. - u16 (*send_message)(struct capi_ctr *, struct sk_buff *skb);
  5200. + void (*release_appl)(struct capi_ctr *, __u16 appl);
  5201. + __u16 (*send_message)(struct capi_ctr *, struct sk_buff *skb);
  5202. char *(*procinfo)(struct capi_ctr *);
  5203. int (*ctr_read_proc)(char *page, char **start, off_t off,
  5204. int count, int *eof, struct capi_ctr *card);
  5205. /* filled in before calling ready callback */
  5206. - u8 manu[CAPI_MANUFACTURER_LEN]; /* CAPI_GET_MANUFACTURER */
  5207. + __u8 manu[CAPI_MANUFACTURER_LEN]; /* CAPI_GET_MANUFACTURER */
  5208. capi_version version; /* CAPI_GET_VERSION */
  5209. capi_profile profile; /* CAPI_GET_PROFILE */
  5210. - u8 serial[CAPI_SERIAL_LEN]; /* CAPI_GET_SERIAL */
  5211. + __u8 serial[CAPI_SERIAL_LEN]; /* CAPI_GET_SERIAL */
  5212. /* management information for kcapi */
  5213. @@ -81,7 +81,7 @@
  5214. void capi_ctr_reseted(struct capi_ctr * card);
  5215. void capi_ctr_suspend_output(struct capi_ctr * card);
  5216. void capi_ctr_resume_output(struct capi_ctr * card);
  5217. -void capi_ctr_handle_message(struct capi_ctr * card, u16 appl, struct sk_buff *skb);
  5218. +void capi_ctr_handle_message(struct capi_ctr * card, __u16 appl, struct sk_buff *skb);
  5219. // ---------------------------------------------------------------------------
  5220. // needed for AVM capi drivers
  5221. @@ -102,11 +102,11 @@
  5222. // ---------------------------------------------------------------------------
  5223. // library functions for use by hardware controller drivers
  5224. -void capilib_new_ncci(struct list_head *head, u16 applid, u32 ncci, u32 winsize);
  5225. -void capilib_free_ncci(struct list_head *head, u16 applid, u32 ncci);
  5226. -void capilib_release_appl(struct list_head *head, u16 applid);
  5227. +void capilib_new_ncci(struct list_head *head, __u16 applid, __u32 ncci, __u32 winsize);
  5228. +void capilib_free_ncci(struct list_head *head, __u16 applid, __u32 ncci);
  5229. +void capilib_release_appl(struct list_head *head, __u16 applid);
  5230. void capilib_release(struct list_head *head);
  5231. -void capilib_data_b3_conf(struct list_head *head, u16 applid, u32 ncci, u16 msgid);
  5232. -u16 capilib_data_b3_req(struct list_head *head, u16 applid, u32 ncci, u16 msgid);
  5233. +void capilib_data_b3_conf(struct list_head *head, __u16 applid, __u32 ncci, __u16 msgid);
  5234. +__u16 capilib_data_b3_req(struct list_head *head, __u16 applid, __u32 ncci, __u16 msgid);
  5235. #endif /* __CAPILLI_H__ */
  5236. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/jhash.h linux-libc-headers-2.6.8.0/include/linux/jhash.h
  5237. --- linux-libc-headers-2.6.8.0-dist/include/linux/jhash.h 2004-03-28 07:52:09.000000000 -0600
  5238. +++ linux-libc-headers-2.6.8.0/include/linux/jhash.h 2004-08-26 05:42:08.000000000 -0500
  5239. @@ -41,19 +41,19 @@
  5240. * of bytes. No alignment or length assumptions are made about
  5241. * the input key.
  5242. */
  5243. -static inline u32 jhash(const void *key, u32 length, u32 initval)
  5244. +static inline __u32 jhash(const void *key, __u32 length, __u32 initval)
  5245. {
  5246. - u32 a, b, c, len;
  5247. - const u8 *k = key;
  5248. + __u32 a, b, c, len;
  5249. + const __u8 *k = key;
  5250. len = length;
  5251. a = b = JHASH_GOLDEN_RATIO;
  5252. c = initval;
  5253. while (len >= 12) {
  5254. - a += (k[0] +((u32)k[1]<<8) +((u32)k[2]<<16) +((u32)k[3]<<24));
  5255. - b += (k[4] +((u32)k[5]<<8) +((u32)k[6]<<16) +((u32)k[7]<<24));
  5256. - c += (k[8] +((u32)k[9]<<8) +((u32)k[10]<<16)+((u32)k[11]<<24));
  5257. + a += (k[0] +((__u32)k[1]<<8) +((__u32)k[2]<<16) +((__u32)k[3]<<24));
  5258. + b += (k[4] +((__u32)k[5]<<8) +((__u32)k[6]<<16) +((__u32)k[7]<<24));
  5259. + c += (k[8] +((__u32)k[9]<<8) +((__u32)k[10]<<16)+((__u32)k[11]<<24));
  5260. __jhash_mix(a,b,c);
  5261. @@ -63,16 +63,16 @@
  5262. c += length;
  5263. switch (len) {
  5264. - case 11: c += ((u32)k[10]<<24);
  5265. - case 10: c += ((u32)k[9]<<16);
  5266. - case 9 : c += ((u32)k[8]<<8);
  5267. - case 8 : b += ((u32)k[7]<<24);
  5268. - case 7 : b += ((u32)k[6]<<16);
  5269. - case 6 : b += ((u32)k[5]<<8);
  5270. + case 11: c += ((__u32)k[10]<<24);
  5271. + case 10: c += ((__u32)k[9]<<16);
  5272. + case 9 : c += ((__u32)k[8]<<8);
  5273. + case 8 : b += ((__u32)k[7]<<24);
  5274. + case 7 : b += ((__u32)k[6]<<16);
  5275. + case 6 : b += ((__u32)k[5]<<8);
  5276. case 5 : b += k[4];
  5277. - case 4 : a += ((u32)k[3]<<24);
  5278. - case 3 : a += ((u32)k[2]<<16);
  5279. - case 2 : a += ((u32)k[1]<<8);
  5280. + case 4 : a += ((__u32)k[3]<<24);
  5281. + case 3 : a += ((__u32)k[2]<<16);
  5282. + case 2 : a += ((__u32)k[1]<<8);
  5283. case 1 : a += k[0];
  5284. };
  5285. @@ -81,12 +81,12 @@
  5286. return c;
  5287. }
  5288. -/* A special optimized version that handles 1 or more of u32s.
  5289. - * The length parameter here is the number of u32s in the key.
  5290. +/* A special optimized version that handles 1 or more of __u32s.
  5291. + * The length parameter here is the number of __u32s in the key.
  5292. */
  5293. -static inline u32 jhash2(u32 *k, u32 length, u32 initval)
  5294. +static inline __u32 jhash2(__u32 *k, __u32 length, __u32 initval)
  5295. {
  5296. - u32 a, b, c, len;
  5297. + __u32 a, b, c, len;
  5298. a = b = JHASH_GOLDEN_RATIO;
  5299. c = initval;
  5300. @@ -119,7 +119,7 @@
  5301. * NOTE: In partilar the "c += length; __jhash_mix(a,b,c);" normally
  5302. * done at the end is not done here.
  5303. */
  5304. -static inline u32 jhash_3words(u32 a, u32 b, u32 c, u32 initval)
  5305. +static inline __u32 jhash_3words(__u32 a, __u32 b, __u32 c, __u32 initval)
  5306. {
  5307. a += JHASH_GOLDEN_RATIO;
  5308. b += JHASH_GOLDEN_RATIO;
  5309. @@ -130,12 +130,12 @@
  5310. return c;
  5311. }
  5312. -static inline u32 jhash_2words(u32 a, u32 b, u32 initval)
  5313. +static inline __u32 jhash_2words(__u32 a, __u32 b, __u32 initval)
  5314. {
  5315. return jhash_3words(a, b, 0, initval);
  5316. }
  5317. -static inline u32 jhash_1word(u32 a, u32 initval)
  5318. +static inline __u32 jhash_1word(__u32 a, __u32 initval)
  5319. {
  5320. return jhash_3words(a, 0, 0, initval);
  5321. }
  5322. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/jiffies.h linux-libc-headers-2.6.8.0/include/linux/jiffies.h
  5323. --- linux-libc-headers-2.6.8.0-dist/include/linux/jiffies.h 2004-01-17 17:04:30.000000000 -0600
  5324. +++ linux-libc-headers-2.6.8.0/include/linux/jiffies.h 2004-08-26 13:26:33.000000000 -0500
  5325. @@ -12,15 +12,15 @@
  5326. * without sampling the sequence number in xtime_lock.
  5327. * get_jiffies_64() will do this for you as appropriate.
  5328. */
  5329. -extern u64 jiffies_64;
  5330. +extern __u64 jiffies_64;
  5331. extern unsigned long volatile jiffies;
  5332. #if (BITS_PER_LONG < 64)
  5333. -u64 get_jiffies_64(void);
  5334. +__u64 get_jiffies_64(void);
  5335. #else
  5336. -static inline u64 get_jiffies_64(void)
  5337. +static inline __u64 get_jiffies_64(void)
  5338. {
  5339. - return (u64)jiffies;
  5340. + return (__u64)jiffies;
  5341. }
  5342. #endif
  5343. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/kernel_stat.h linux-libc-headers-2.6.8.0/include/linux/kernel_stat.h
  5344. --- linux-libc-headers-2.6.8.0-dist/include/linux/kernel_stat.h 2004-04-19 16:13:51.000000000 -0500
  5345. +++ linux-libc-headers-2.6.8.0/include/linux/kernel_stat.h 2004-08-26 05:42:08.000000000 -0500
  5346. @@ -12,13 +12,13 @@
  5347. */
  5348. struct cpu_usage_stat {
  5349. - u64 user;
  5350. - u64 nice;
  5351. - u64 system;
  5352. - u64 softirq;
  5353. - u64 irq;
  5354. - u64 idle;
  5355. - u64 iowait;
  5356. + __u64 user;
  5357. + __u64 nice;
  5358. + __u64 system;
  5359. + __u64 softirq;
  5360. + __u64 irq;
  5361. + __u64 idle;
  5362. + __u64 iowait;
  5363. };
  5364. struct kernel_stat {
  5365. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/libata.h linux-libc-headers-2.6.8.0/include/linux/libata.h
  5366. --- linux-libc-headers-2.6.8.0-dist/include/linux/libata.h 2004-08-18 13:16:03.000000000 -0500
  5367. +++ linux-libc-headers-2.6.8.0/include/linux/libata.h 2004-08-26 05:42:08.000000000 -0500
  5368. @@ -160,7 +160,7 @@
  5369. struct ata_queued_cmd;
  5370. /* typedefs */
  5371. -typedef int (*ata_qc_cb_t) (struct ata_queued_cmd *qc, u8 drv_stat);
  5372. +typedef int (*ata_qc_cb_t) (struct ata_queued_cmd *qc, __u8 drv_stat);
  5373. struct ata_ioports {
  5374. unsigned long cmd_addr;
  5375. @@ -246,18 +246,18 @@
  5376. };
  5377. struct ata_device {
  5378. - u64 n_sectors; /* size of device, if ATA */
  5379. + __u64 n_sectors; /* size of device, if ATA */
  5380. unsigned long flags; /* ATA_DFLAG_xxx */
  5381. unsigned int class; /* ATA_DEV_xxx */
  5382. unsigned int devno; /* 0 or 1 */
  5383. - u16 id[ATA_ID_WORDS]; /* IDENTIFY xxx DEVICE data */
  5384. + __u16 id[ATA_ID_WORDS]; /* IDENTIFY xxx DEVICE data */
  5385. unsigned int pio_mode;
  5386. unsigned int udma_mode;
  5387. /* cache info about current transfer mode */
  5388. - u8 xfer_protocol; /* taskfile xfer protocol */
  5389. - u8 read_cmd; /* opcode to use on read */
  5390. - u8 write_cmd; /* opcode to use on write */
  5391. + __u8 xfer_protocol; /* taskfile xfer protocol */
  5392. + __u8 read_cmd; /* opcode to use on read */
  5393. + __u8 write_cmd; /* opcode to use on write */
  5394. };
  5395. struct ata_port {
  5396. @@ -272,8 +272,8 @@
  5397. struct ata_ioports ioaddr; /* ATA cmd/ctl/dma register blocks */
  5398. - u8 ctl; /* cache of ATA control register */
  5399. - u8 last_ctl; /* Cache last written value */
  5400. + __u8 ctl; /* cache of ATA control register */
  5401. + __u8 last_ctl; /* Cache last written value */
  5402. unsigned int bus_state;
  5403. unsigned int port_state;
  5404. unsigned int pio_mask;
  5405. @@ -312,7 +312,7 @@
  5406. void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf);
  5407. void (*exec_command)(struct ata_port *ap, struct ata_taskfile *tf);
  5408. - u8 (*check_status)(struct ata_port *ap);
  5409. + __u8 (*check_status)(struct ata_port *ap);
  5410. void (*phy_reset) (struct ata_port *ap);
  5411. void (*post_set_mode) (struct ata_port *ap);
  5412. @@ -328,9 +328,9 @@
  5413. irqreturn_t (*irq_handler)(int, void *, struct pt_regs *);
  5414. void (*irq_clear) (struct ata_port *);
  5415. - u32 (*scr_read) (struct ata_port *ap, unsigned int sc_reg);
  5416. + __u32 (*scr_read) (struct ata_port *ap, unsigned int sc_reg);
  5417. void (*scr_write) (struct ata_port *ap, unsigned int sc_reg,
  5418. - u32 val);
  5419. + __u32 val);
  5420. int (*port_start) (struct ata_port *ap);
  5421. void (*port_stop) (struct ata_port *ap);
  5422. @@ -374,10 +374,10 @@
  5423. extern void ata_tf_load_mmio(struct ata_port *ap, struct ata_taskfile *tf);
  5424. extern void ata_tf_read_pio(struct ata_port *ap, struct ata_taskfile *tf);
  5425. extern void ata_tf_read_mmio(struct ata_port *ap, struct ata_taskfile *tf);
  5426. -extern void ata_tf_to_fis(struct ata_taskfile *tf, u8 *fis, u8 pmp);
  5427. -extern void ata_tf_from_fis(u8 *fis, struct ata_taskfile *tf);
  5428. -extern u8 ata_check_status_pio(struct ata_port *ap);
  5429. -extern u8 ata_check_status_mmio(struct ata_port *ap);
  5430. +extern void ata_tf_to_fis(struct ata_taskfile *tf, __u8 *fis, __u8 pmp);
  5431. +extern void ata_tf_from_fis(__u8 *fis, struct ata_taskfile *tf);
  5432. +extern __u8 ata_check_status_pio(struct ata_port *ap);
  5433. +extern __u8 ata_check_status_mmio(struct ata_port *ap);
  5434. extern void ata_exec_command_pio(struct ata_port *ap, struct ata_taskfile *tf);
  5435. extern void ata_exec_command_mmio(struct ata_port *ap, struct ata_taskfile *tf);
  5436. extern int ata_port_start (struct ata_port *ap);
  5437. @@ -397,7 +397,7 @@
  5438. extern void ata_bmdma_start_pio (struct ata_queued_cmd *qc);
  5439. extern void ata_bmdma_irq_clear(struct ata_port *ap);
  5440. extern int pci_test_config_bits(struct pci_dev *pdev, struct pci_bits *bits);
  5441. -extern void ata_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat);
  5442. +extern void ata_qc_complete(struct ata_queued_cmd *qc, __u8 drv_stat);
  5443. extern void ata_eng_timeout(struct ata_port *ap);
  5444. extern int ata_std_bios_param(struct scsi_device *sdev,
  5445. struct block_device *bdev,
  5446. @@ -416,7 +416,7 @@
  5447. (dev->class == ATA_DEV_ATAPI));
  5448. }
  5449. -static inline u8 ata_chk_err(struct ata_port *ap)
  5450. +static inline __u8 ata_chk_err(struct ata_port *ap)
  5451. {
  5452. if (ap->flags & ATA_FLAG_MMIO) {
  5453. return readb((void *) ap->ioaddr.error_addr);
  5454. @@ -424,12 +424,12 @@
  5455. return inb(ap->ioaddr.error_addr);
  5456. }
  5457. -static inline u8 ata_chk_status(struct ata_port *ap)
  5458. +static inline __u8 ata_chk_status(struct ata_port *ap)
  5459. {
  5460. return ap->ops->check_status(ap);
  5461. }
  5462. -static inline u8 ata_altstatus(struct ata_port *ap)
  5463. +static inline __u8 ata_altstatus(struct ata_port *ap)
  5464. {
  5465. if (ap->flags & ATA_FLAG_MMIO)
  5466. return readb(ap->ioaddr.altstatus_addr);
  5467. @@ -442,10 +442,10 @@
  5468. ndelay(400);
  5469. }
  5470. -static inline u8 ata_busy_wait(struct ata_port *ap, unsigned int bits,
  5471. +static inline __u8 ata_busy_wait(struct ata_port *ap, unsigned int bits,
  5472. unsigned int max)
  5473. {
  5474. - u8 status;
  5475. + __u8 status;
  5476. do {
  5477. udelay(10);
  5478. @@ -456,9 +456,9 @@
  5479. return status;
  5480. }
  5481. -static inline u8 ata_wait_idle(struct ata_port *ap)
  5482. +static inline __u8 ata_wait_idle(struct ata_port *ap)
  5483. {
  5484. - u8 status = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000);
  5485. + __u8 status = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000);
  5486. if (status & (ATA_BUSY | ATA_DRQ)) {
  5487. unsigned long l = ap->ioaddr.status_addr;
  5488. @@ -495,10 +495,10 @@
  5489. tf->device = ATA_DEVICE_OBS | ATA_DEV1;
  5490. }
  5491. -static inline u8 ata_irq_on(struct ata_port *ap)
  5492. +static inline __u8 ata_irq_on(struct ata_port *ap)
  5493. {
  5494. struct ata_ioports *ioaddr = &ap->ioaddr;
  5495. - u8 tmp;
  5496. + __u8 tmp;
  5497. ap->ctl &= ~ATA_NIEN;
  5498. ap->last_ctl = ap->ctl;
  5499. @@ -514,10 +514,10 @@
  5500. return tmp;
  5501. }
  5502. -static inline u8 ata_irq_ack(struct ata_port *ap, unsigned int chk_drq)
  5503. +static inline __u8 ata_irq_ack(struct ata_port *ap, unsigned int chk_drq)
  5504. {
  5505. unsigned int bits = chk_drq ? ATA_BUSY | ATA_DRQ : ATA_BUSY;
  5506. - u8 host_stat, post_stat, status;
  5507. + __u8 host_stat, post_stat, status;
  5508. status = ata_busy_wait(ap, bits, 1000);
  5509. if (status & bits)
  5510. @@ -545,12 +545,12 @@
  5511. return status;
  5512. }
  5513. -static inline u32 scr_read(struct ata_port *ap, unsigned int reg)
  5514. +static inline __u32 scr_read(struct ata_port *ap, unsigned int reg)
  5515. {
  5516. return ap->ops->scr_read(ap, reg);
  5517. }
  5518. -static inline void scr_write(struct ata_port *ap, unsigned int reg, u32 val)
  5519. +static inline void scr_write(struct ata_port *ap, unsigned int reg, __u32 val)
  5520. {
  5521. ap->ops->scr_write(ap, reg, val);
  5522. }
  5523. @@ -589,9 +589,9 @@
  5524. }
  5525. }
  5526. -static inline u8 ata_bmdma_status(struct ata_port *ap)
  5527. +static inline __u8 ata_bmdma_status(struct ata_port *ap)
  5528. {
  5529. - u8 host_stat;
  5530. + __u8 host_stat;
  5531. if (ap->flags & ATA_FLAG_MMIO) {
  5532. void *mmio = (void *) ap->ioaddr.bmdma_addr;
  5533. host_stat = readb(mmio + ATA_DMA_STATUS);
  5534. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/lockd/bind.h linux-libc-headers-2.6.8.0/include/linux/lockd/bind.h
  5535. --- linux-libc-headers-2.6.8.0-dist/include/linux/lockd/bind.h 2003-12-15 12:46:58.000000000 -0600
  5536. +++ linux-libc-headers-2.6.8.0/include/linux/lockd/bind.h 2004-08-26 05:42:08.000000000 -0500
  5537. @@ -18,7 +18,7 @@
  5538. * This is the set of functions for lockd->nfsd communication
  5539. */
  5540. struct nlmsvc_binding {
  5541. - u32 (*fopen)(struct svc_rqst *,
  5542. + __u32 (*fopen)(struct svc_rqst *,
  5543. struct nfs_fh *,
  5544. struct file *);
  5545. void (*fclose)(struct file *);
  5546. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/lockd/nlm.h linux-libc-headers-2.6.8.0/include/linux/lockd/nlm.h
  5547. --- linux-libc-headers-2.6.8.0-dist/include/linux/lockd/nlm.h 2004-01-17 17:04:34.000000000 -0600
  5548. +++ linux-libc-headers-2.6.8.0/include/linux/lockd/nlm.h 2004-08-26 05:42:08.000000000 -0500
  5549. @@ -11,8 +11,8 @@
  5550. /* Maximum file offset in file_lock.fl_end */
  5551. -# define NLM_OFFSET_MAX ((s32) 0x7fffffff)
  5552. -# define NLM4_OFFSET_MAX ((s64) ((~(u64)0) >> 1))
  5553. +# define NLM_OFFSET_MAX ((__s32) 0x7fffffff)
  5554. +# define NLM4_OFFSET_MAX ((__s64) ((~(__u64)0) >> 1))
  5555. /* Return states for NLM */
  5556. enum {
  5557. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/lockd/share.h linux-libc-headers-2.6.8.0/include/linux/lockd/share.h
  5558. --- linux-libc-headers-2.6.8.0-dist/include/linux/lockd/share.h 2003-12-15 12:46:58.000000000 -0600
  5559. +++ linux-libc-headers-2.6.8.0/include/linux/lockd/share.h 2004-08-26 13:26:43.000000000 -0500
  5560. @@ -17,13 +17,13 @@
  5561. struct nlm_host * s_host; /* client host */
  5562. struct nlm_file * s_file; /* shared file */
  5563. struct xdr_netobj s_owner; /* owner handle */
  5564. - u32 s_access; /* access mode */
  5565. - u32 s_mode; /* deny mode */
  5566. + __u32 s_access; /* access mode */
  5567. + __u32 s_mode; /* deny mode */
  5568. };
  5569. -u32 nlmsvc_share_file(struct nlm_host *, struct nlm_file *,
  5570. +__u32 nlmsvc_share_file(struct nlm_host *, struct nlm_file *,
  5571. struct nlm_args *);
  5572. -u32 nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *,
  5573. +__u32 nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *,
  5574. struct nlm_args *);
  5575. int nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *, int);
  5576. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/lockd/sm_inter.h linux-libc-headers-2.6.8.0/include/linux/lockd/sm_inter.h
  5577. --- linux-libc-headers-2.6.8.0-dist/include/linux/lockd/sm_inter.h 2003-12-15 12:46:58.000000000 -0600
  5578. +++ linux-libc-headers-2.6.8.0/include/linux/lockd/sm_inter.h 2004-08-26 05:42:08.000000000 -0500
  5579. @@ -24,23 +24,23 @@
  5580. * Arguments for all calls to statd
  5581. */
  5582. struct nsm_args {
  5583. - u32 addr; /* remote address */
  5584. - u32 prog; /* RPC callback info */
  5585. - u32 vers;
  5586. - u32 proc;
  5587. - u32 proto; /* protocol (udp/tcp) plus server/client flag */
  5588. + __u32 addr; /* remote address */
  5589. + __u32 prog; /* RPC callback info */
  5590. + __u32 vers;
  5591. + __u32 proc;
  5592. + __u32 proto; /* protocol (udp/tcp) plus server/client flag */
  5593. };
  5594. /*
  5595. * Result returned by statd
  5596. */
  5597. struct nsm_res {
  5598. - u32 status;
  5599. - u32 state;
  5600. + __u32 status;
  5601. + __u32 state;
  5602. };
  5603. int nsm_monitor(struct nlm_host *);
  5604. int nsm_unmonitor(struct nlm_host *);
  5605. -extern u32 nsm_local_state;
  5606. +extern __u32 nsm_local_state;
  5607. #endif /* LINUX_LOCKD_SM_INTER_H */
  5608. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/lockd/xdr.h linux-libc-headers-2.6.8.0/include/linux/lockd/xdr.h
  5609. --- linux-libc-headers-2.6.8.0-dist/include/linux/lockd/xdr.h 2004-01-05 12:42:33.000000000 -0600
  5610. +++ linux-libc-headers-2.6.8.0/include/linux/lockd/xdr.h 2004-08-26 05:42:08.000000000 -0500
  5611. @@ -48,12 +48,12 @@
  5612. struct nlm_args {
  5613. struct nlm_cookie cookie;
  5614. struct nlm_lock lock;
  5615. - u32 block;
  5616. - u32 reclaim;
  5617. - u32 state;
  5618. - u32 monitor;
  5619. - u32 fsm_access;
  5620. - u32 fsm_mode;
  5621. + __u32 block;
  5622. + __u32 reclaim;
  5623. + __u32 state;
  5624. + __u32 monitor;
  5625. + __u32 fsm_access;
  5626. + __u32 fsm_mode;
  5627. };
  5628. typedef struct nlm_args nlm_args;
  5629. @@ -63,7 +63,7 @@
  5630. */
  5631. struct nlm_res {
  5632. struct nlm_cookie cookie;
  5633. - u32 status;
  5634. + __u32 status;
  5635. struct nlm_lock lock;
  5636. };
  5637. @@ -73,10 +73,10 @@
  5638. struct nlm_reboot {
  5639. char * mon;
  5640. int len;
  5641. - u32 state;
  5642. - u32 addr;
  5643. - u32 vers;
  5644. - u32 proto;
  5645. + __u32 state;
  5646. + __u32 addr;
  5647. + __u32 vers;
  5648. + __u32 proto;
  5649. };
  5650. /*
  5651. @@ -84,24 +84,24 @@
  5652. */
  5653. #define NLMSVC_XDRSIZE sizeof(struct nlm_args)
  5654. -int nlmsvc_decode_testargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5655. -int nlmsvc_encode_testres(struct svc_rqst *, u32 *, struct nlm_res *);
  5656. -int nlmsvc_decode_lockargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5657. -int nlmsvc_decode_cancargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5658. -int nlmsvc_decode_unlockargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5659. -int nlmsvc_encode_res(struct svc_rqst *, u32 *, struct nlm_res *);
  5660. -int nlmsvc_decode_res(struct svc_rqst *, u32 *, struct nlm_res *);
  5661. -int nlmsvc_encode_void(struct svc_rqst *, u32 *, void *);
  5662. -int nlmsvc_decode_void(struct svc_rqst *, u32 *, void *);
  5663. -int nlmsvc_decode_shareargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5664. -int nlmsvc_encode_shareres(struct svc_rqst *, u32 *, struct nlm_res *);
  5665. -int nlmsvc_decode_notify(struct svc_rqst *, u32 *, struct nlm_args *);
  5666. -int nlmsvc_decode_reboot(struct svc_rqst *, u32 *, struct nlm_reboot *);
  5667. +int nlmsvc_decode_testargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5668. +int nlmsvc_encode_testres(struct svc_rqst *, __u32 *, struct nlm_res *);
  5669. +int nlmsvc_decode_lockargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5670. +int nlmsvc_decode_cancargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5671. +int nlmsvc_decode_unlockargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5672. +int nlmsvc_encode_res(struct svc_rqst *, __u32 *, struct nlm_res *);
  5673. +int nlmsvc_decode_res(struct svc_rqst *, __u32 *, struct nlm_res *);
  5674. +int nlmsvc_encode_void(struct svc_rqst *, __u32 *, void *);
  5675. +int nlmsvc_decode_void(struct svc_rqst *, __u32 *, void *);
  5676. +int nlmsvc_decode_shareargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5677. +int nlmsvc_encode_shareres(struct svc_rqst *, __u32 *, struct nlm_res *);
  5678. +int nlmsvc_decode_notify(struct svc_rqst *, __u32 *, struct nlm_args *);
  5679. +int nlmsvc_decode_reboot(struct svc_rqst *, __u32 *, struct nlm_reboot *);
  5680. /*
  5681. -int nlmclt_encode_testargs(struct rpc_rqst *, u32 *, struct nlm_args *);
  5682. -int nlmclt_encode_lockargs(struct rpc_rqst *, u32 *, struct nlm_args *);
  5683. -int nlmclt_encode_cancargs(struct rpc_rqst *, u32 *, struct nlm_args *);
  5684. -int nlmclt_encode_unlockargs(struct rpc_rqst *, u32 *, struct nlm_args *);
  5685. +int nlmclt_encode_testargs(struct rpc_rqst *, __u32 *, struct nlm_args *);
  5686. +int nlmclt_encode_lockargs(struct rpc_rqst *, __u32 *, struct nlm_args *);
  5687. +int nlmclt_encode_cancargs(struct rpc_rqst *, __u32 *, struct nlm_args *);
  5688. +int nlmclt_encode_unlockargs(struct rpc_rqst *, __u32 *, struct nlm_args *);
  5689. */
  5690. #endif /* LOCKD_XDR_H */
  5691. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/lockd/xdr4.h linux-libc-headers-2.6.8.0/include/linux/lockd/xdr4.h
  5692. --- linux-libc-headers-2.6.8.0-dist/include/linux/lockd/xdr4.h 2004-01-05 12:42:33.000000000 -0600
  5693. +++ linux-libc-headers-2.6.8.0/include/linux/lockd/xdr4.h 2004-08-26 05:42:08.000000000 -0500
  5694. @@ -22,24 +22,24 @@
  5695. -int nlm4svc_decode_testargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5696. -int nlm4svc_encode_testres(struct svc_rqst *, u32 *, struct nlm_res *);
  5697. -int nlm4svc_decode_lockargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5698. -int nlm4svc_decode_cancargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5699. -int nlm4svc_decode_unlockargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5700. -int nlm4svc_encode_res(struct svc_rqst *, u32 *, struct nlm_res *);
  5701. -int nlm4svc_decode_res(struct svc_rqst *, u32 *, struct nlm_res *);
  5702. -int nlm4svc_encode_void(struct svc_rqst *, u32 *, void *);
  5703. -int nlm4svc_decode_void(struct svc_rqst *, u32 *, void *);
  5704. -int nlm4svc_decode_shareargs(struct svc_rqst *, u32 *, struct nlm_args *);
  5705. -int nlm4svc_encode_shareres(struct svc_rqst *, u32 *, struct nlm_res *);
  5706. -int nlm4svc_decode_notify(struct svc_rqst *, u32 *, struct nlm_args *);
  5707. -int nlm4svc_decode_reboot(struct svc_rqst *, u32 *, struct nlm_reboot *);
  5708. +int nlm4svc_decode_testargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5709. +int nlm4svc_encode_testres(struct svc_rqst *, __u32 *, struct nlm_res *);
  5710. +int nlm4svc_decode_lockargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5711. +int nlm4svc_decode_cancargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5712. +int nlm4svc_decode_unlockargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5713. +int nlm4svc_encode_res(struct svc_rqst *, __u32 *, struct nlm_res *);
  5714. +int nlm4svc_decode_res(struct svc_rqst *, __u32 *, struct nlm_res *);
  5715. +int nlm4svc_encode_void(struct svc_rqst *, __u32 *, void *);
  5716. +int nlm4svc_decode_void(struct svc_rqst *, __u32 *, void *);
  5717. +int nlm4svc_decode_shareargs(struct svc_rqst *, __u32 *, struct nlm_args *);
  5718. +int nlm4svc_encode_shareres(struct svc_rqst *, __u32 *, struct nlm_res *);
  5719. +int nlm4svc_decode_notify(struct svc_rqst *, __u32 *, struct nlm_args *);
  5720. +int nlm4svc_decode_reboot(struct svc_rqst *, __u32 *, struct nlm_reboot *);
  5721. /*
  5722. -int nlmclt_encode_testargs(struct rpc_rqst *, u32 *, struct nlm_args *);
  5723. -int nlmclt_encode_lockargs(struct rpc_rqst *, u32 *, struct nlm_args *);
  5724. -int nlmclt_encode_cancargs(struct rpc_rqst *, u32 *, struct nlm_args *);
  5725. -int nlmclt_encode_unlockargs(struct rpc_rqst *, u32 *, struct nlm_args *);
  5726. +int nlmclt_encode_testargs(struct rpc_rqst *, __u32 *, struct nlm_args *);
  5727. +int nlmclt_encode_lockargs(struct rpc_rqst *, __u32 *, struct nlm_args *);
  5728. +int nlmclt_encode_cancargs(struct rpc_rqst *, __u32 *, struct nlm_args *);
  5729. +int nlmclt_encode_unlockargs(struct rpc_rqst *, __u32 *, struct nlm_args *);
  5730. */
  5731. #endif /* LOCKD_XDR4_H */
  5732. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/mca.h linux-libc-headers-2.6.8.0/include/linux/mca.h
  5733. --- linux-libc-headers-2.6.8.0-dist/include/linux/mca.h 2004-08-18 13:16:03.000000000 -0500
  5734. +++ linux-libc-headers-2.6.8.0/include/linux/mca.h 2004-08-26 05:42:08.000000000 -0500
  5735. @@ -50,7 +50,7 @@
  5736. };
  5737. struct mca_device {
  5738. - u64 dma_mask;
  5739. + __u64 dma_mask;
  5740. int pos_id;
  5741. int slot;
  5742. @@ -91,7 +91,7 @@
  5743. };
  5744. struct mca_bus {
  5745. - u64 default_dma_mask;
  5746. + __u64 default_dma_mask;
  5747. int number;
  5748. struct mca_bus_accessor_functions f;
  5749. struct device dev;
  5750. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/mii.h linux-libc-headers-2.6.8.0/include/linux/mii.h
  5751. --- linux-libc-headers-2.6.8.0-dist/include/linux/mii.h 2004-06-23 16:52:55.000000000 -0500
  5752. +++ linux-libc-headers-2.6.8.0/include/linux/mii.h 2004-08-26 05:42:08.000000000 -0500
  5753. @@ -138,10 +138,10 @@
  5754. /* This structure is used in all SIOCxMIIxxx ioctl calls */
  5755. struct mii_ioctl_data {
  5756. - u16 phy_id;
  5757. - u16 reg_num;
  5758. - u16 val_in;
  5759. - u16 val_out;
  5760. + __u16 phy_id;
  5761. + __u16 reg_num;
  5762. + __u16 val_in;
  5763. + __u16 val_out;
  5764. };
  5765. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/mtd/map.h linux-libc-headers-2.6.8.0/include/linux/mtd/map.h
  5766. --- linux-libc-headers-2.6.8.0-dist/include/linux/mtd/map.h 2004-08-18 13:16:06.000000000 -0500
  5767. +++ linux-libc-headers-2.6.8.0/include/linux/mtd/map.h 2004-08-26 05:42:08.000000000 -0500
  5768. @@ -36,20 +36,20 @@
  5769. int buswidth; /* in octets */
  5770. #ifdef CONFIG_MTD_COMPLEX_MAPPINGS
  5771. - u8 (*read8)(struct map_info *, unsigned long);
  5772. - u16 (*read16)(struct map_info *, unsigned long);
  5773. - u32 (*read32)(struct map_info *, unsigned long);
  5774. - u64 (*read64)(struct map_info *, unsigned long);
  5775. + __u8 (*read8)(struct map_info *, unsigned long);
  5776. + __u16 (*read16)(struct map_info *, unsigned long);
  5777. + __u32 (*read32)(struct map_info *, unsigned long);
  5778. + __u64 (*read64)(struct map_info *, unsigned long);
  5779. /* If it returned a 'long' I'd call it readl.
  5780. * It doesn't.
  5781. * I won't.
  5782. * dwmw2 */
  5783. void (*copy_from)(struct map_info *, void *, unsigned long, ssize_t);
  5784. - void (*write8)(struct map_info *, u8, unsigned long);
  5785. - void (*write16)(struct map_info *, u16, unsigned long);
  5786. - void (*write32)(struct map_info *, u32, unsigned long);
  5787. - void (*write64)(struct map_info *, u64, unsigned long);
  5788. + void (*write8)(struct map_info *, __u8, unsigned long);
  5789. + void (*write16)(struct map_info *, __u16, unsigned long);
  5790. + void (*write32)(struct map_info *, __u32, unsigned long);
  5791. + void (*write64)(struct map_info *, __u64, unsigned long);
  5792. void (*copy_to)(struct map_info *, unsigned long, const void *, ssize_t);
  5793. /* We can perhaps put in 'point' and 'unpoint' methods, if we really
  5794. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/mtd/nand.h linux-libc-headers-2.6.8.0/include/linux/mtd/nand.h
  5795. --- linux-libc-headers-2.6.8.0-dist/include/linux/mtd/nand.h 2004-08-18 13:16:06.000000000 -0500
  5796. +++ linux-libc-headers-2.6.8.0/include/linux/mtd/nand.h 2004-08-26 05:42:08.000000000 -0500
  5797. @@ -271,8 +271,8 @@
  5798. u_char (*read_byte)(struct mtd_info *mtd);
  5799. void (*write_byte)(struct mtd_info *mtd, u_char byte);
  5800. - u16 (*read_word)(struct mtd_info *mtd);
  5801. - void (*write_word)(struct mtd_info *mtd, u16 word);
  5802. + __u16 (*read_word)(struct mtd_info *mtd);
  5803. + void (*write_word)(struct mtd_info *mtd, __u16 word);
  5804. void (*write_buf)(struct mtd_info *mtd, const u_char *buf, int len);
  5805. void (*read_buf)(struct mtd_info *mtd, u_char *buf, int len);
  5806. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/mtd/pmc551.h linux-libc-headers-2.6.8.0/include/linux/mtd/pmc551.h
  5807. --- linux-libc-headers-2.6.8.0-dist/include/linux/mtd/pmc551.h 2004-03-28 07:52:13.000000000 -0600
  5808. +++ linux-libc-headers-2.6.8.0/include/linux/mtd/pmc551.h 2004-08-26 05:42:08.000000000 -0500
  5809. @@ -25,9 +25,9 @@
  5810. struct mypriv {
  5811. struct pci_dev *dev;
  5812. u_char *start;
  5813. - u32 base_map0;
  5814. - u32 curr_map0;
  5815. - u32 asize;
  5816. + __u32 base_map0;
  5817. + __u32 curr_map0;
  5818. + __u32 asize;
  5819. struct mtd_info *nextpmc551;
  5820. };
  5821. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/nbd.h linux-libc-headers-2.6.8.0/include/linux/nbd.h
  5822. --- linux-libc-headers-2.6.8.0-dist/include/linux/nbd.h 2004-03-28 07:52:09.000000000 -0600
  5823. +++ linux-libc-headers-2.6.8.0/include/linux/nbd.h 2004-08-26 05:42:08.000000000 -0500
  5824. @@ -45,11 +45,11 @@
  5825. * server. All data are in network byte order.
  5826. */
  5827. struct nbd_request {
  5828. - u32 magic;
  5829. - u32 type; /* == READ || == WRITE */
  5830. + __u32 magic;
  5831. + __u32 type; /* == READ || == WRITE */
  5832. char handle[8];
  5833. - u64 from;
  5834. - u32 len;
  5835. + __u64 from;
  5836. + __u32 len;
  5837. }
  5838. #ifdef __GNUC__
  5839. __attribute__ ((packed))
  5840. @@ -61,8 +61,8 @@
  5841. * it has completed an I/O request (or an error occurs).
  5842. */
  5843. struct nbd_reply {
  5844. - u32 magic;
  5845. - u32 error; /* 0 = ok, else error */
  5846. + __u32 magic;
  5847. + __u32 error; /* 0 = ok, else error */
  5848. char handle[8]; /* handle you got from request */
  5849. };
  5850. #endif
  5851. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/nfs_fs_i.h linux-libc-headers-2.6.8.0/include/linux/nfs_fs_i.h
  5852. --- linux-libc-headers-2.6.8.0-dist/include/linux/nfs_fs_i.h 2004-01-17 17:04:31.000000000 -0600
  5853. +++ linux-libc-headers-2.6.8.0/include/linux/nfs_fs_i.h 2004-08-26 05:42:08.000000000 -0500
  5854. @@ -8,8 +8,8 @@
  5855. * NFS lock info
  5856. */
  5857. struct nfs_lock_info {
  5858. - u32 state;
  5859. - u32 flags;
  5860. + __u32 state;
  5861. + __u32 flags;
  5862. struct nlm_host *host;
  5863. };
  5864. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/nfs_fs_sb.h linux-libc-headers-2.6.8.0/include/linux/nfs_fs_sb.h
  5865. --- linux-libc-headers-2.6.8.0-dist/include/linux/nfs_fs_sb.h 2004-06-09 07:00:50.000000000 -0500
  5866. +++ linux-libc-headers-2.6.8.0/include/linux/nfs_fs_sb.h 2004-08-26 05:42:08.000000000 -0500
  5867. @@ -37,10 +37,10 @@
  5868. struct list_head nfs4_siblings; /* List of other nfs_server structs
  5869. * that share the same clientid
  5870. */
  5871. - u32 attr_bitmask[2];/* V4 bitmask representing the set
  5872. + __u32 attr_bitmask[2];/* V4 bitmask representing the set
  5873. of attributes supported on this
  5874. filesystem */
  5875. - u32 acl_bitmask; /* V4 bitmask representing the ACEs
  5876. + __u32 acl_bitmask; /* V4 bitmask representing the ACEs
  5877. that are supported on this
  5878. filesystem */
  5879. #endif
  5880. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/nfs_xdr.h linux-libc-headers-2.6.8.0/include/linux/nfs_xdr.h
  5881. --- linux-libc-headers-2.6.8.0-dist/include/linux/nfs_xdr.h 2004-06-09 07:00:50.000000000 -0500
  5882. +++ linux-libc-headers-2.6.8.0/include/linux/nfs_xdr.h 2004-08-26 05:42:08.000000000 -0500
  5883. @@ -90,9 +90,9 @@
  5884. };
  5885. struct nfs4_change_info {
  5886. - u32 atomic;
  5887. - u64 before;
  5888. - u64 after;
  5889. + __u32 atomic;
  5890. + __u64 before;
  5891. + __u64 after;
  5892. };
  5893. /*
  5894. @@ -112,7 +112,7 @@
  5895. } u;
  5896. const struct qstr * name;
  5897. const struct nfs_server *server; /* Needed for ID mapping */
  5898. - const u32 * bitmask;
  5899. + const __u32 * bitmask;
  5900. };
  5901. struct nfs_openres {
  5902. @@ -168,7 +168,7 @@
  5903. * */
  5904. struct nfs_lowner {
  5905. __u64 clientid;
  5906. - u32 id;
  5907. + __u32 id;
  5908. };
  5909. struct nfs_open_to_lock {
  5910. @@ -328,7 +328,7 @@
  5911. nfs4_stateid stateid;
  5912. struct iattr * iap;
  5913. const struct nfs_server * server; /* Needed for name mapping */
  5914. - const u32 * bitmask;
  5915. + const __u32 * bitmask;
  5916. };
  5917. struct nfs_setattrres {
  5918. @@ -482,32 +482,32 @@
  5919. #ifdef CONFIG_NFS_V4
  5920. -typedef u64 clientid4;
  5921. +typedef __u64 clientid4;
  5922. struct nfs4_accessargs {
  5923. const struct nfs_fh * fh;
  5924. - u32 access;
  5925. + __u32 access;
  5926. };
  5927. struct nfs4_accessres {
  5928. - u32 supported;
  5929. - u32 access;
  5930. + __u32 supported;
  5931. + __u32 access;
  5932. };
  5933. struct nfs4_create_arg {
  5934. - u32 ftype;
  5935. + __u32 ftype;
  5936. union {
  5937. struct qstr * symlink; /* NF4LNK */
  5938. struct {
  5939. - u32 specdata1;
  5940. - u32 specdata2;
  5941. + __u32 specdata1;
  5942. + __u32 specdata2;
  5943. } device; /* NF4BLK, NF4CHR */
  5944. } u;
  5945. const struct qstr * name;
  5946. const struct nfs_server * server;
  5947. const struct iattr * attrs;
  5948. const struct nfs_fh * dir_fh;
  5949. - const u32 * bitmask;
  5950. + const __u32 * bitmask;
  5951. };
  5952. struct nfs4_create_res {
  5953. @@ -519,12 +519,12 @@
  5954. struct nfs4_fsinfo_arg {
  5955. const struct nfs_fh * fh;
  5956. - const u32 * bitmask;
  5957. + const __u32 * bitmask;
  5958. };
  5959. struct nfs4_getattr_arg {
  5960. const struct nfs_fh * fh;
  5961. - const u32 * bitmask;
  5962. + const __u32 * bitmask;
  5963. };
  5964. struct nfs4_getattr_res {
  5965. @@ -541,7 +541,7 @@
  5966. struct nfs4_lookup_arg {
  5967. const struct nfs_fh * dir_fh;
  5968. const struct qstr * name;
  5969. - const u32 * bitmask;
  5970. + const __u32 * bitmask;
  5971. };
  5972. struct nfs4_lookup_res {
  5973. @@ -551,19 +551,19 @@
  5974. };
  5975. struct nfs4_lookup_root_arg {
  5976. - const u32 * bitmask;
  5977. + const __u32 * bitmask;
  5978. };
  5979. struct nfs4_pathconf_arg {
  5980. const struct nfs_fh * fh;
  5981. - const u32 * bitmask;
  5982. + const __u32 * bitmask;
  5983. };
  5984. struct nfs4_readdir_arg {
  5985. const struct nfs_fh * fh;
  5986. - u64 cookie;
  5987. + __u64 cookie;
  5988. nfs4_verifier verifier;
  5989. - u32 count;
  5990. + __u32 count;
  5991. struct page ** pages; /* zero-copy data */
  5992. unsigned int pgbase; /* zero-copy data */
  5993. };
  5994. @@ -575,7 +575,7 @@
  5995. struct nfs4_readlink {
  5996. const struct nfs_fh * fh;
  5997. - u32 count; /* zero-copy data */
  5998. + __u32 count; /* zero-copy data */
  5999. struct page ** pages; /* zero-copy data */
  6000. };
  6001. @@ -599,23 +599,23 @@
  6002. struct nfs4_setclientid {
  6003. nfs4_verifier sc_verifier; /* request */
  6004. char * sc_name; /* request */
  6005. - u32 sc_prog; /* request */
  6006. + __u32 sc_prog; /* request */
  6007. char sc_netid[4]; /* request */
  6008. char sc_uaddr[24]; /* request */
  6009. - u32 sc_cb_ident; /* request */
  6010. + __u32 sc_cb_ident; /* request */
  6011. struct nfs4_client * sc_state; /* response */
  6012. };
  6013. struct nfs4_statfs_arg {
  6014. const struct nfs_fh * fh;
  6015. - const u32 * bitmask;
  6016. + const __u32 * bitmask;
  6017. };
  6018. struct nfs4_server_caps_res {
  6019. - u32 attr_bitmask[2];
  6020. - u32 acl_bitmask;
  6021. - u32 has_links;
  6022. - u32 has_symlinks;
  6023. + __u32 attr_bitmask[2];
  6024. + __u32 acl_bitmask;
  6025. + __u32 has_links;
  6026. + __u32 has_symlinks;
  6027. };
  6028. #endif /* CONFIG_NFS_V4 */
  6029. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/nfsd/state.h linux-libc-headers-2.6.8.0/include/linux/nfsd/state.h
  6030. --- linux-libc-headers-2.6.8.0-dist/include/linux/nfsd/state.h 2004-08-18 13:16:07.000000000 -0500
  6031. +++ linux-libc-headers-2.6.8.0/include/linux/nfsd/state.h 2004-08-26 05:42:08.000000000 -0500
  6032. @@ -41,18 +41,18 @@
  6033. #define NFS4_OPAQUE_LIMIT 1024
  6034. typedef struct {
  6035. - u32 cl_boot;
  6036. - u32 cl_id;
  6037. + __u32 cl_boot;
  6038. + __u32 cl_id;
  6039. } clientid_t;
  6040. typedef struct {
  6041. - u32 so_boot;
  6042. - u32 so_stateownerid;
  6043. - u32 so_fileid;
  6044. + __u32 so_boot;
  6045. + __u32 so_stateownerid;
  6046. + __u32 so_fileid;
  6047. } stateid_opaque_t;
  6048. typedef struct {
  6049. - u32 si_generation;
  6050. + __u32 si_generation;
  6051. stateid_opaque_t si_opaque;
  6052. } stateid_t;
  6053. #define si_boot si_opaque.so_boot
  6054. @@ -68,14 +68,14 @@
  6055. /* client delegation callback info */
  6056. struct nfs4_callback {
  6057. /* SETCLIENTID info */
  6058. - u32 cb_parsed; /* addr parsed */
  6059. - u32 cb_addr;
  6060. + __u32 cb_parsed; /* addr parsed */
  6061. + __u32 cb_addr;
  6062. unsigned short cb_port;
  6063. - u32 cb_prog;
  6064. - u32 cb_ident;
  6065. + __u32 cb_prog;
  6066. + __u32 cb_ident;
  6067. struct xdr_netobj cb_netid;
  6068. /* RPC client info */
  6069. - u32 cb_set; /* successful CB_NULL call */
  6070. + __u32 cb_set; /* successful CB_NULL call */
  6071. struct rpc_program cb_program;
  6072. struct rpc_stat cb_stat;
  6073. struct rpc_clnt * cb_client;
  6074. @@ -99,7 +99,7 @@
  6075. struct xdr_netobj cl_name; /* id generated by client */
  6076. nfs4_verifier cl_verifier; /* generated by client */
  6077. time_t cl_time; /* time of last lease renewal */
  6078. - u32 cl_addr; /* client ipaddress */
  6079. + __u32 cl_addr; /* client ipaddress */
  6080. struct svc_cred cl_cred; /* setclientid principal */
  6081. clientid_t cl_clientid; /* generated by server */
  6082. nfs4_verifier cl_confirm; /* generated by server */
  6083. @@ -116,7 +116,7 @@
  6084. struct list_head cr_strhash; /* hash by cr_name */
  6085. struct xdr_netobj cr_name; /* id generated by client */
  6086. time_t cr_first_state; /* first state aquisition */
  6087. - u32 cr_expired; /* boolean: lease expired? */
  6088. + __u32 cr_expired; /* boolean: lease expired? */
  6089. };
  6090. static inline void
  6091. @@ -139,7 +139,7 @@
  6092. * is cached.
  6093. */
  6094. struct nfs4_replay {
  6095. - u32 rp_status;
  6096. + __u32 rp_status;
  6097. unsigned int rp_buflen;
  6098. char *rp_buf;
  6099. unsigned intrp_allocated;
  6100. @@ -175,9 +175,9 @@
  6101. struct list_head so_close_lru; /* tail queue */
  6102. time_t so_time; /* time of placement on so_close_lru */
  6103. int so_is_open_owner; /* 1=openowner,0=lockowner */
  6104. - u32 so_id;
  6105. + __u32 so_id;
  6106. struct nfs4_client * so_client;
  6107. - u32 so_seqid;
  6108. + __u32 so_seqid;
  6109. struct xdr_netobj so_owner; /* open owner name */
  6110. int so_confirmed; /* successful OPEN_CONFIRM? */
  6111. struct nfs4_replay so_replay;
  6112. @@ -192,7 +192,7 @@
  6113. struct list_head fi_hash; /* hash by "struct inode *" */
  6114. struct list_head fi_perfile; /* list: nfs4_stateid */
  6115. struct inode *fi_inode;
  6116. - u32 fi_id; /* used with stateowner->so_id
  6117. + __u32 fi_id; /* used with stateowner->so_id
  6118. * for stateid_hashtbl hash */
  6119. };
  6120. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/nfsd/xdr.h linux-libc-headers-2.6.8.0/include/linux/nfsd/xdr.h
  6121. --- linux-libc-headers-2.6.8.0-dist/include/linux/nfsd/xdr.h 2004-08-18 13:16:07.000000000 -0500
  6122. +++ linux-libc-headers-2.6.8.0/include/linux/nfsd/xdr.h 2004-08-26 05:42:08.000000000 -0500
  6123. @@ -83,7 +83,7 @@
  6124. struct svc_fh fh;
  6125. __u32 cookie;
  6126. __u32 count;
  6127. - u32 * buffer;
  6128. + __u32 * buffer;
  6129. };
  6130. struct nfsd_attrstat {
  6131. @@ -107,9 +107,9 @@
  6132. int count;
  6133. struct readdir_cd common;
  6134. - u32 * buffer;
  6135. + __u32 * buffer;
  6136. int buflen;
  6137. - u32 * offset;
  6138. + __u32 * offset;
  6139. };
  6140. struct nfsd_statfsres {
  6141. @@ -134,39 +134,39 @@
  6142. #define NFS2_SVC_XDRSIZE sizeof(union nfsd_xdrstore)
  6143. -int nfssvc_decode_void(struct svc_rqst *, u32 *, void *);
  6144. -int nfssvc_decode_fhandle(struct svc_rqst *, u32 *, struct nfsd_fhandle *);
  6145. -int nfssvc_decode_sattrargs(struct svc_rqst *, u32 *,
  6146. +int nfssvc_decode_void(struct svc_rqst *, __u32 *, void *);
  6147. +int nfssvc_decode_fhandle(struct svc_rqst *, __u32 *, struct nfsd_fhandle *);
  6148. +int nfssvc_decode_sattrargs(struct svc_rqst *, __u32 *,
  6149. struct nfsd_sattrargs *);
  6150. -int nfssvc_decode_diropargs(struct svc_rqst *, u32 *,
  6151. +int nfssvc_decode_diropargs(struct svc_rqst *, __u32 *,
  6152. struct nfsd_diropargs *);
  6153. -int nfssvc_decode_readargs(struct svc_rqst *, u32 *,
  6154. +int nfssvc_decode_readargs(struct svc_rqst *, __u32 *,
  6155. struct nfsd_readargs *);
  6156. -int nfssvc_decode_writeargs(struct svc_rqst *, u32 *,
  6157. +int nfssvc_decode_writeargs(struct svc_rqst *, __u32 *,
  6158. struct nfsd_writeargs *);
  6159. -int nfssvc_decode_createargs(struct svc_rqst *, u32 *,
  6160. +int nfssvc_decode_createargs(struct svc_rqst *, __u32 *,
  6161. struct nfsd_createargs *);
  6162. -int nfssvc_decode_renameargs(struct svc_rqst *, u32 *,
  6163. +int nfssvc_decode_renameargs(struct svc_rqst *, __u32 *,
  6164. struct nfsd_renameargs *);
  6165. -int nfssvc_decode_readlinkargs(struct svc_rqst *, u32 *,
  6166. +int nfssvc_decode_readlinkargs(struct svc_rqst *, __u32 *,
  6167. struct nfsd_readlinkargs *);
  6168. -int nfssvc_decode_linkargs(struct svc_rqst *, u32 *,
  6169. +int nfssvc_decode_linkargs(struct svc_rqst *, __u32 *,
  6170. struct nfsd_linkargs *);
  6171. -int nfssvc_decode_symlinkargs(struct svc_rqst *, u32 *,
  6172. +int nfssvc_decode_symlinkargs(struct svc_rqst *, __u32 *,
  6173. struct nfsd_symlinkargs *);
  6174. -int nfssvc_decode_readdirargs(struct svc_rqst *, u32 *,
  6175. +int nfssvc_decode_readdirargs(struct svc_rqst *, __u32 *,
  6176. struct nfsd_readdirargs *);
  6177. -int nfssvc_encode_void(struct svc_rqst *, u32 *, void *);
  6178. -int nfssvc_encode_attrstat(struct svc_rqst *, u32 *, struct nfsd_attrstat *);
  6179. -int nfssvc_encode_diropres(struct svc_rqst *, u32 *, struct nfsd_diropres *);
  6180. -int nfssvc_encode_readlinkres(struct svc_rqst *, u32 *, struct nfsd_readlinkres *);
  6181. -int nfssvc_encode_readres(struct svc_rqst *, u32 *, struct nfsd_readres *);
  6182. -int nfssvc_encode_statfsres(struct svc_rqst *, u32 *, struct nfsd_statfsres *);
  6183. -int nfssvc_encode_readdirres(struct svc_rqst *, u32 *, struct nfsd_readdirres *);
  6184. +int nfssvc_encode_void(struct svc_rqst *, __u32 *, void *);
  6185. +int nfssvc_encode_attrstat(struct svc_rqst *, __u32 *, struct nfsd_attrstat *);
  6186. +int nfssvc_encode_diropres(struct svc_rqst *, __u32 *, struct nfsd_diropres *);
  6187. +int nfssvc_encode_readlinkres(struct svc_rqst *, __u32 *, struct nfsd_readlinkres *);
  6188. +int nfssvc_encode_readres(struct svc_rqst *, __u32 *, struct nfsd_readres *);
  6189. +int nfssvc_encode_statfsres(struct svc_rqst *, __u32 *, struct nfsd_statfsres *);
  6190. +int nfssvc_encode_readdirres(struct svc_rqst *, __u32 *, struct nfsd_readdirres *);
  6191. int nfssvc_encode_entry(struct readdir_cd *, const char *name,
  6192. int namlen, loff_t offset, ino_t ino, unsigned int);
  6193. -int nfssvc_release_fhandle(struct svc_rqst *, u32 *, struct nfsd_fhandle *);
  6194. +int nfssvc_release_fhandle(struct svc_rqst *, __u32 *, struct nfsd_fhandle *);
  6195. #endif /* LINUX_NFSD_H */
  6196. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/nfsd/xdr3.h linux-libc-headers-2.6.8.0/include/linux/nfsd/xdr3.h
  6197. --- linux-libc-headers-2.6.8.0-dist/include/linux/nfsd/xdr3.h 2004-08-18 13:16:07.000000000 -0500
  6198. +++ linux-libc-headers-2.6.8.0/include/linux/nfsd/xdr3.h 2004-08-26 05:42:08.000000000 -0500
  6199. @@ -101,7 +101,7 @@
  6200. __u32 dircount;
  6201. __u32 count;
  6202. __u32 * verf;
  6203. - u32 * buffer;
  6204. + __u32 * buffer;
  6205. };
  6206. struct nfsd3_commitargs {
  6207. @@ -167,10 +167,10 @@
  6208. __u32 verf[2];
  6209. struct readdir_cd common;
  6210. - u32 * buffer;
  6211. + __u32 * buffer;
  6212. int buflen;
  6213. - u32 * offset;
  6214. - u32 * offset1;
  6215. + __u32 * offset;
  6216. + __u32 * offset1;
  6217. struct svc_rqst * rqstp;
  6218. };
  6219. @@ -245,70 +245,70 @@
  6220. #define NFS3_SVC_XDRSIZE sizeof(union nfsd3_xdrstore)
  6221. -int nfs3svc_decode_fhandle(struct svc_rqst *, u32 *, struct nfsd_fhandle *);
  6222. -int nfs3svc_decode_sattrargs(struct svc_rqst *, u32 *,
  6223. +int nfs3svc_decode_fhandle(struct svc_rqst *, __u32 *, struct nfsd_fhandle *);
  6224. +int nfs3svc_decode_sattrargs(struct svc_rqst *, __u32 *,
  6225. struct nfsd3_sattrargs *);
  6226. -int nfs3svc_decode_diropargs(struct svc_rqst *, u32 *,
  6227. +int nfs3svc_decode_diropargs(struct svc_rqst *, __u32 *,
  6228. struct nfsd3_diropargs *);
  6229. -int nfs3svc_decode_accessargs(struct svc_rqst *, u32 *,
  6230. +int nfs3svc_decode_accessargs(struct svc_rqst *, __u32 *,
  6231. struct nfsd3_accessargs *);
  6232. -int nfs3svc_decode_readargs(struct svc_rqst *, u32 *,
  6233. +int nfs3svc_decode_readargs(struct svc_rqst *, __u32 *,
  6234. struct nfsd3_readargs *);
  6235. -int nfs3svc_decode_writeargs(struct svc_rqst *, u32 *,
  6236. +int nfs3svc_decode_writeargs(struct svc_rqst *, __u32 *,
  6237. struct nfsd3_writeargs *);
  6238. -int nfs3svc_decode_createargs(struct svc_rqst *, u32 *,
  6239. +int nfs3svc_decode_createargs(struct svc_rqst *, __u32 *,
  6240. struct nfsd3_createargs *);
  6241. -int nfs3svc_decode_mkdirargs(struct svc_rqst *, u32 *,
  6242. +int nfs3svc_decode_mkdirargs(struct svc_rqst *, __u32 *,
  6243. struct nfsd3_createargs *);
  6244. -int nfs3svc_decode_mknodargs(struct svc_rqst *, u32 *,
  6245. +int nfs3svc_decode_mknodargs(struct svc_rqst *, __u32 *,
  6246. struct nfsd3_mknodargs *);
  6247. -int nfs3svc_decode_renameargs(struct svc_rqst *, u32 *,
  6248. +int nfs3svc_decode_renameargs(struct svc_rqst *, __u32 *,
  6249. struct nfsd3_renameargs *);
  6250. -int nfs3svc_decode_readlinkargs(struct svc_rqst *, u32 *,
  6251. +int nfs3svc_decode_readlinkargs(struct svc_rqst *, __u32 *,
  6252. struct nfsd3_readlinkargs *);
  6253. -int nfs3svc_decode_linkargs(struct svc_rqst *, u32 *,
  6254. +int nfs3svc_decode_linkargs(struct svc_rqst *, __u32 *,
  6255. struct nfsd3_linkargs *);
  6256. -int nfs3svc_decode_symlinkargs(struct svc_rqst *, u32 *,
  6257. +int nfs3svc_decode_symlinkargs(struct svc_rqst *, __u32 *,
  6258. struct nfsd3_symlinkargs *);
  6259. -int nfs3svc_decode_readdirargs(struct svc_rqst *, u32 *,
  6260. +int nfs3svc_decode_readdirargs(struct svc_rqst *, __u32 *,
  6261. struct nfsd3_readdirargs *);
  6262. -int nfs3svc_decode_readdirplusargs(struct svc_rqst *, u32 *,
  6263. +int nfs3svc_decode_readdirplusargs(struct svc_rqst *, __u32 *,
  6264. struct nfsd3_readdirargs *);
  6265. -int nfs3svc_decode_commitargs(struct svc_rqst *, u32 *,
  6266. +int nfs3svc_decode_commitargs(struct svc_rqst *, __u32 *,
  6267. struct nfsd3_commitargs *);
  6268. -int nfs3svc_encode_voidres(struct svc_rqst *, u32 *, void *);
  6269. -int nfs3svc_encode_attrstat(struct svc_rqst *, u32 *,
  6270. +int nfs3svc_encode_voidres(struct svc_rqst *, __u32 *, void *);
  6271. +int nfs3svc_encode_attrstat(struct svc_rqst *, __u32 *,
  6272. struct nfsd3_attrstat *);
  6273. -int nfs3svc_encode_wccstat(struct svc_rqst *, u32 *,
  6274. +int nfs3svc_encode_wccstat(struct svc_rqst *, __u32 *,
  6275. struct nfsd3_attrstat *);
  6276. -int nfs3svc_encode_diropres(struct svc_rqst *, u32 *,
  6277. +int nfs3svc_encode_diropres(struct svc_rqst *, __u32 *,
  6278. struct nfsd3_diropres *);
  6279. -int nfs3svc_encode_accessres(struct svc_rqst *, u32 *,
  6280. +int nfs3svc_encode_accessres(struct svc_rqst *, __u32 *,
  6281. struct nfsd3_accessres *);
  6282. -int nfs3svc_encode_readlinkres(struct svc_rqst *, u32 *,
  6283. +int nfs3svc_encode_readlinkres(struct svc_rqst *, __u32 *,
  6284. struct nfsd3_readlinkres *);
  6285. -int nfs3svc_encode_readres(struct svc_rqst *, u32 *, struct nfsd3_readres *);
  6286. -int nfs3svc_encode_writeres(struct svc_rqst *, u32 *, struct nfsd3_writeres *);
  6287. -int nfs3svc_encode_createres(struct svc_rqst *, u32 *,
  6288. +int nfs3svc_encode_readres(struct svc_rqst *, __u32 *, struct nfsd3_readres *);
  6289. +int nfs3svc_encode_writeres(struct svc_rqst *, __u32 *, struct nfsd3_writeres *);
  6290. +int nfs3svc_encode_createres(struct svc_rqst *, __u32 *,
  6291. struct nfsd3_diropres *);
  6292. -int nfs3svc_encode_renameres(struct svc_rqst *, u32 *,
  6293. +int nfs3svc_encode_renameres(struct svc_rqst *, __u32 *,
  6294. struct nfsd3_renameres *);
  6295. -int nfs3svc_encode_linkres(struct svc_rqst *, u32 *,
  6296. +int nfs3svc_encode_linkres(struct svc_rqst *, __u32 *,
  6297. struct nfsd3_linkres *);
  6298. -int nfs3svc_encode_readdirres(struct svc_rqst *, u32 *,
  6299. +int nfs3svc_encode_readdirres(struct svc_rqst *, __u32 *,
  6300. struct nfsd3_readdirres *);
  6301. -int nfs3svc_encode_fsstatres(struct svc_rqst *, u32 *,
  6302. +int nfs3svc_encode_fsstatres(struct svc_rqst *, __u32 *,
  6303. struct nfsd3_fsstatres *);
  6304. -int nfs3svc_encode_fsinfores(struct svc_rqst *, u32 *,
  6305. +int nfs3svc_encode_fsinfores(struct svc_rqst *, __u32 *,
  6306. struct nfsd3_fsinfores *);
  6307. -int nfs3svc_encode_pathconfres(struct svc_rqst *, u32 *,
  6308. +int nfs3svc_encode_pathconfres(struct svc_rqst *, __u32 *,
  6309. struct nfsd3_pathconfres *);
  6310. -int nfs3svc_encode_commitres(struct svc_rqst *, u32 *,
  6311. +int nfs3svc_encode_commitres(struct svc_rqst *, __u32 *,
  6312. struct nfsd3_commitres *);
  6313. -int nfs3svc_release_fhandle(struct svc_rqst *, u32 *,
  6314. +int nfs3svc_release_fhandle(struct svc_rqst *, __u32 *,
  6315. struct nfsd3_attrstat *);
  6316. -int nfs3svc_release_fhandle2(struct svc_rqst *, u32 *,
  6317. +int nfs3svc_release_fhandle2(struct svc_rqst *, __u32 *,
  6318. struct nfsd3_fhandle_pair *);
  6319. int nfs3svc_encode_entry(struct readdir_cd *, const char *name,
  6320. int namlen, loff_t offset, ino_t ino,
  6321. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/nfsd/xdr4.h linux-libc-headers-2.6.8.0/include/linux/nfsd/xdr4.h
  6322. --- linux-libc-headers-2.6.8.0-dist/include/linux/nfsd/xdr4.h 2004-08-18 13:16:07.000000000 -0500
  6323. +++ linux-libc-headers-2.6.8.0/include/linux/nfsd/xdr4.h 2004-08-26 05:42:08.000000000 -0500
  6324. @@ -42,9 +42,9 @@
  6325. #define NFSD4_MAX_TAGLEN 128
  6326. #define XDR_LEN(n) (((n) + 3) & ~3)
  6327. -typedef u32 delegation_zero_t;
  6328. -typedef u32 delegation_boot_t;
  6329. -typedef u64 delegation_id_t;
  6330. +typedef __u32 delegation_zero_t;
  6331. +typedef __u32 delegation_boot_t;
  6332. +typedef __u64 delegation_id_t;
  6333. typedef struct {
  6334. delegation_zero_t ds_zero;
  6335. @@ -53,46 +53,46 @@
  6336. } delegation_stateid_t;
  6337. struct nfsd4_change_info {
  6338. - u32 atomic;
  6339. - u32 before_ctime_sec;
  6340. - u32 before_ctime_nsec;
  6341. - u32 after_ctime_sec;
  6342. - u32 after_ctime_nsec;
  6343. + __u32 atomic;
  6344. + __u32 before_ctime_sec;
  6345. + __u32 before_ctime_nsec;
  6346. + __u32 after_ctime_sec;
  6347. + __u32 after_ctime_nsec;
  6348. };
  6349. struct nfsd4_access {
  6350. - u32 ac_req_access; /* request */
  6351. - u32 ac_supported; /* response */
  6352. - u32 ac_resp_access; /* response */
  6353. + __u32 ac_req_access; /* request */
  6354. + __u32 ac_supported; /* response */
  6355. + __u32 ac_resp_access; /* response */
  6356. };
  6357. struct nfsd4_close {
  6358. - u32 cl_seqid; /* request */
  6359. + __u32 cl_seqid; /* request */
  6360. stateid_t cl_stateid; /* request+response */
  6361. struct nfs4_stateowner * cl_stateowner; /* response */
  6362. };
  6363. struct nfsd4_commit {
  6364. - u64 co_offset; /* request */
  6365. - u32 co_count; /* request */
  6366. + __u64 co_offset; /* request */
  6367. + __u32 co_count; /* request */
  6368. nfs4_verifier co_verf; /* response */
  6369. };
  6370. struct nfsd4_create {
  6371. - u32 cr_namelen; /* request */
  6372. + __u32 cr_namelen; /* request */
  6373. char * cr_name; /* request */
  6374. - u32 cr_type; /* request */
  6375. + __u32 cr_type; /* request */
  6376. union { /* request */
  6377. struct {
  6378. - u32 namelen;
  6379. + __u32 namelen;
  6380. char *name;
  6381. } link; /* NF4LNK */
  6382. struct {
  6383. - u32 specdata1;
  6384. - u32 specdata2;
  6385. + __u32 specdata1;
  6386. + __u32 specdata2;
  6387. } dev; /* NF4BLK, NF4CHR */
  6388. } u;
  6389. - u32 cr_bmval[2]; /* request */
  6390. + __u32 cr_bmval[2]; /* request */
  6391. struct iattr cr_iattr; /* request */
  6392. struct nfsd4_change_info cr_cinfo; /* response */
  6393. };
  6394. @@ -102,41 +102,41 @@
  6395. #define cr_specdata2 u.dev.specdata2
  6396. struct nfsd4_getattr {
  6397. - u32 ga_bmval[2]; /* request */
  6398. + __u32 ga_bmval[2]; /* request */
  6399. struct svc_fh *ga_fhp; /* response */
  6400. };
  6401. struct nfsd4_link {
  6402. - u32 li_namelen; /* request */
  6403. + __u32 li_namelen; /* request */
  6404. char * li_name; /* request */
  6405. struct nfsd4_change_info li_cinfo; /* response */
  6406. };
  6407. struct nfsd4_lock_denied {
  6408. struct nfs4_stateowner *ld_sop;
  6409. - u64 ld_start;
  6410. - u64 ld_length;
  6411. - u32 ld_type;
  6412. + __u64 ld_start;
  6413. + __u64 ld_length;
  6414. + __u32 ld_type;
  6415. };
  6416. struct nfsd4_lock {
  6417. /* request */
  6418. - u32 lk_type;
  6419. - u32 lk_reclaim; /* boolean */
  6420. - u64 lk_offset;
  6421. - u64 lk_length;
  6422. - u32 lk_is_new;
  6423. + __u32 lk_type;
  6424. + __u32 lk_reclaim; /* boolean */
  6425. + __u64 lk_offset;
  6426. + __u64 lk_length;
  6427. + __u32 lk_is_new;
  6428. union {
  6429. struct {
  6430. - u32 open_seqid;
  6431. + __u32 open_seqid;
  6432. stateid_t open_stateid;
  6433. - u32 lock_seqid;
  6434. + __u32 lock_seqid;
  6435. clientid_t clientid;
  6436. struct xdr_netobj owner;
  6437. } new;
  6438. struct {
  6439. stateid_t lock_stateid;
  6440. - u32 lock_seqid;
  6441. + __u32 lock_seqid;
  6442. } old;
  6443. } v;
  6444. @@ -164,56 +164,56 @@
  6445. struct nfsd4_lockt {
  6446. - u32 lt_type;
  6447. + __u32 lt_type;
  6448. clientid_t lt_clientid;
  6449. struct xdr_netobj lt_owner;
  6450. - u64 lt_offset;
  6451. - u64 lt_length;
  6452. + __u64 lt_offset;
  6453. + __u64 lt_length;
  6454. struct nfs4_stateowner * lt_stateowner;
  6455. struct nfsd4_lock_denied lt_denied;
  6456. };
  6457. struct nfsd4_locku {
  6458. - u32 lu_type;
  6459. - u32 lu_seqid;
  6460. + __u32 lu_type;
  6461. + __u32 lu_seqid;
  6462. stateid_t lu_stateid;
  6463. - u64 lu_offset;
  6464. - u64 lu_length;
  6465. + __u64 lu_offset;
  6466. + __u64 lu_length;
  6467. struct nfs4_stateowner *lu_stateowner;
  6468. };
  6469. struct nfsd4_lookup {
  6470. - u32 lo_len; /* request */
  6471. + __u32 lo_len; /* request */
  6472. char * lo_name; /* request */
  6473. };
  6474. struct nfsd4_putfh {
  6475. - u32 pf_fhlen; /* request */
  6476. + __u32 pf_fhlen; /* request */
  6477. char *pf_fhval; /* request */
  6478. };
  6479. struct nfsd4_open {
  6480. - u32 op_claim_type; /* request */
  6481. + __u32 op_claim_type; /* request */
  6482. struct xdr_netobj op_fname; /* request - everything but CLAIM_PREV */
  6483. - u32 op_delegate_type; /* request - CLAIM_PREV only */
  6484. + __u32 op_delegate_type; /* request - CLAIM_PREV only */
  6485. delegation_stateid_t op_delegate_stateid; /* request - CLAIM_DELEGATE_CUR only */
  6486. - u32 op_create; /* request */
  6487. - u32 op_createmode; /* request */
  6488. - u32 op_bmval[2]; /* request */
  6489. + __u32 op_create; /* request */
  6490. + __u32 op_createmode; /* request */
  6491. + __u32 op_bmval[2]; /* request */
  6492. union { /* request */
  6493. struct iattr iattr; /* UNCHECKED4,GUARDED4 */
  6494. nfs4_verifier verf; /* EXCLUSIVE4 */
  6495. } u;
  6496. clientid_t op_clientid; /* request */
  6497. struct xdr_netobj op_owner; /* request */
  6498. - u32 op_seqid; /* request */
  6499. - u32 op_share_access; /* request */
  6500. - u32 op_share_deny; /* request */
  6501. + __u32 op_seqid; /* request */
  6502. + __u32 op_share_access; /* request */
  6503. + __u32 op_share_deny; /* request */
  6504. stateid_t op_stateid; /* response */
  6505. struct nfsd4_change_info op_cinfo; /* response */
  6506. - u32 op_rflags; /* response */
  6507. + __u32 op_rflags; /* response */
  6508. int op_truncate; /* used during processing */
  6509. struct nfs4_stateowner *op_stateowner; /* used during processing */
  6510. @@ -223,24 +223,24 @@
  6511. struct nfsd4_open_confirm {
  6512. stateid_t oc_req_stateid /* request */;
  6513. - u32 oc_seqid /* request */;
  6514. + __u32 oc_seqid /* request */;
  6515. stateid_t oc_resp_stateid /* response */;
  6516. struct nfs4_stateowner * oc_stateowner; /* response */
  6517. };
  6518. struct nfsd4_open_downgrade {
  6519. stateid_t od_stateid;
  6520. - u32 od_seqid;
  6521. - u32 od_share_access;
  6522. - u32 od_share_deny;
  6523. + __u32 od_seqid;
  6524. + __u32 od_share_access;
  6525. + __u32 od_share_deny;
  6526. struct nfs4_stateowner *od_stateowner;
  6527. };
  6528. struct nfsd4_read {
  6529. stateid_t rd_stateid; /* request */
  6530. - u64 rd_offset; /* request */
  6531. - u32 rd_length; /* request */
  6532. + __u64 rd_offset; /* request */
  6533. + __u32 rd_length; /* request */
  6534. struct kvec rd_iov[RPCSVC_MAXPAGES];
  6535. int rd_vlen;
  6536. @@ -249,18 +249,18 @@
  6537. };
  6538. struct nfsd4_readdir {
  6539. - u64 rd_cookie; /* request */
  6540. + __u64 rd_cookie; /* request */
  6541. nfs4_verifier rd_verf; /* request */
  6542. - u32 rd_dircount; /* request */
  6543. - u32 rd_maxcount; /* request */
  6544. - u32 rd_bmval[2]; /* request */
  6545. + __u32 rd_dircount; /* request */
  6546. + __u32 rd_maxcount; /* request */
  6547. + __u32 rd_bmval[2]; /* request */
  6548. struct svc_rqst *rd_rqstp; /* response */
  6549. struct svc_fh * rd_fhp; /* response */
  6550. struct readdir_cd common;
  6551. - u32 * buffer;
  6552. + __u32 * buffer;
  6553. int buflen;
  6554. - u32 * offset;
  6555. + __u32 * offset;
  6556. };
  6557. struct nfsd4_release_lockowner {
  6558. @@ -273,15 +273,15 @@
  6559. };
  6560. struct nfsd4_remove {
  6561. - u32 rm_namelen; /* request */
  6562. + __u32 rm_namelen; /* request */
  6563. char * rm_name; /* request */
  6564. struct nfsd4_change_info rm_cinfo; /* response */
  6565. };
  6566. struct nfsd4_rename {
  6567. - u32 rn_snamelen; /* request */
  6568. + __u32 rn_snamelen; /* request */
  6569. char * rn_sname; /* request */
  6570. - u32 rn_tnamelen; /* request */
  6571. + __u32 rn_tnamelen; /* request */
  6572. char * rn_tname; /* request */
  6573. struct nfsd4_change_info rn_sinfo; /* response */
  6574. struct nfsd4_change_info rn_tinfo; /* response */
  6575. @@ -289,20 +289,20 @@
  6576. struct nfsd4_setattr {
  6577. stateid_t sa_stateid; /* request */
  6578. - u32 sa_bmval[2]; /* request */
  6579. + __u32 sa_bmval[2]; /* request */
  6580. struct iattr sa_iattr; /* request */
  6581. };
  6582. struct nfsd4_setclientid {
  6583. nfs4_verifier se_verf; /* request */
  6584. - u32 se_namelen; /* request */
  6585. + __u32 se_namelen; /* request */
  6586. char * se_name; /* request */
  6587. - u32 se_callback_prog; /* request */
  6588. - u32 se_callback_netid_len; /* request */
  6589. + __u32 se_callback_prog; /* request */
  6590. + __u32 se_callback_netid_len; /* request */
  6591. char * se_callback_netid_val; /* request */
  6592. - u32 se_callback_addr_len; /* request */
  6593. + __u32 se_callback_addr_len; /* request */
  6594. char * se_callback_addr_val; /* request */
  6595. - u32 se_callback_ident; /* request */
  6596. + __u32 se_callback_ident; /* request */
  6597. clientid_t se_clientid; /* response */
  6598. nfs4_verifier se_confirm; /* response */
  6599. };
  6600. @@ -314,21 +314,21 @@
  6601. /* also used for NVERIFY */
  6602. struct nfsd4_verify {
  6603. - u32 ve_bmval[2]; /* request */
  6604. - u32 ve_attrlen; /* request */
  6605. + __u32 ve_bmval[2]; /* request */
  6606. + __u32 ve_attrlen; /* request */
  6607. char * ve_attrval; /* request */
  6608. };
  6609. struct nfsd4_write {
  6610. stateid_t wr_stateid; /* request */
  6611. - u64 wr_offset; /* request */
  6612. - u32 wr_stable_how; /* request */
  6613. - u32 wr_buflen; /* request */
  6614. + __u64 wr_offset; /* request */
  6615. + __u32 wr_stable_how; /* request */
  6616. + __u32 wr_buflen; /* request */
  6617. struct kvec wr_vec[RPCSVC_MAXPAGES]; /* request */
  6618. int wr_vlen;
  6619. - u32 wr_bytes_written; /* response */
  6620. - u32 wr_how_written; /* response */
  6621. + __u32 wr_bytes_written; /* response */
  6622. + __u32 wr_how_written; /* response */
  6623. nfs4_verifier wr_verifier; /* response */
  6624. };
  6625. @@ -370,12 +370,12 @@
  6626. struct nfsd4_compoundargs {
  6627. /* scratch variables for XDR decode */
  6628. - u32 * p;
  6629. - u32 * end;
  6630. + __u32 * p;
  6631. + __u32 * end;
  6632. struct page ** pagelist;
  6633. int pagelen;
  6634. - u32 tmp[8];
  6635. - u32 * tmpp;
  6636. + __u32 tmp[8];
  6637. + __u32 * tmpp;
  6638. struct tmpbuf {
  6639. struct tmpbuf *next;
  6640. void (*release)(const void *);
  6641. @@ -384,25 +384,25 @@
  6642. struct svc_rqst *rqstp;
  6643. - u32 taglen;
  6644. + __u32 taglen;
  6645. char * tag;
  6646. - u32 minorversion;
  6647. - u32 opcnt;
  6648. + __u32 minorversion;
  6649. + __u32 opcnt;
  6650. struct nfsd4_op *ops;
  6651. struct nfsd4_op iops[8];
  6652. };
  6653. struct nfsd4_compoundres {
  6654. /* scratch variables for XDR encode */
  6655. - u32 * p;
  6656. - u32 * end;
  6657. + __u32 * p;
  6658. + __u32 * end;
  6659. struct xdr_buf * xbuf;
  6660. struct svc_rqst * rqstp;
  6661. - u32 taglen;
  6662. + __u32 taglen;
  6663. char * tag;
  6664. - u32 opcnt;
  6665. - u32 * tagp; /* where to encode tag and opcount */
  6666. + __u32 opcnt;
  6667. + __u32 * tagp; /* where to encode tag and opcount */
  6668. };
  6669. #define NFS4_SVC_XDRSIZE sizeof(struct nfsd4_compoundargs)
  6670. @@ -418,16 +418,16 @@
  6671. cinfo->after_ctime_nsec = fhp->fh_post_ctime.tv_nsec;
  6672. }
  6673. -int nfs4svc_encode_voidres(struct svc_rqst *, u32 *, void *);
  6674. -int nfs4svc_decode_compoundargs(struct svc_rqst *, u32 *,
  6675. +int nfs4svc_encode_voidres(struct svc_rqst *, __u32 *, void *);
  6676. +int nfs4svc_decode_compoundargs(struct svc_rqst *, __u32 *,
  6677. struct nfsd4_compoundargs *);
  6678. -int nfs4svc_encode_compoundres(struct svc_rqst *, u32 *,
  6679. +int nfs4svc_encode_compoundres(struct svc_rqst *, __u32 *,
  6680. struct nfsd4_compoundres *);
  6681. void nfsd4_encode_operation(struct nfsd4_compoundres *, struct nfsd4_op *);
  6682. void nfsd4_encode_replay(struct nfsd4_compoundres *resp, struct nfsd4_op *op);
  6683. int nfsd4_encode_fattr(struct svc_fh *fhp, struct svc_export *exp,
  6684. - struct dentry *dentry, u32 *buffer, int *countp,
  6685. - u32 *bmval, struct svc_rqst *);
  6686. + struct dentry *dentry, __u32 *buffer, int *countp,
  6687. + __u32 *bmval, struct svc_rqst *);
  6688. extern int nfsd4_setclientid(struct svc_rqst *rqstp,
  6689. struct nfsd4_setclientid *setclid);
  6690. extern int nfsd4_setclientid_confirm(struct svc_rqst *rqstp,
  6691. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/pmu.h linux-libc-headers-2.6.8.0/include/linux/pmu.h
  6692. --- linux-libc-headers-2.6.8.0-dist/include/linux/pmu.h 2004-01-17 17:04:31.000000000 -0600
  6693. +++ linux-libc-headers-2.6.8.0/include/linux/pmu.h 2004-08-26 05:42:08.000000000 -0500
  6694. @@ -120,15 +120,15 @@
  6695. /* no param */
  6696. #define PMU_IOC_SLEEP _IO('B', 0)
  6697. -/* out param: u32* backlight value: 0 to 15 */
  6698. +/* out param: __u32* backlight value: 0 to 15 */
  6699. #define PMU_IOC_GET_BACKLIGHT _IOR('B', 1, size_t)
  6700. -/* in param: u32 backlight value: 0 to 15 */
  6701. +/* in param: __u32 backlight value: 0 to 15 */
  6702. #define PMU_IOC_SET_BACKLIGHT _IOW('B', 2, size_t)
  6703. -/* out param: u32* PMU model */
  6704. +/* out param: __u32* PMU model */
  6705. #define PMU_IOC_GET_MODEL _IOR('B', 3, size_t)
  6706. -/* out param: u32* has_adb: 0 or 1 */
  6707. +/* out param: __u32* has_adb: 0 or 1 */
  6708. #define PMU_IOC_HAS_ADB _IOR('B', 4, size_t)
  6709. -/* out param: u32* can_sleep: 0 or 1 */
  6710. +/* out param: __u32* can_sleep: 0 or 1 */
  6711. #define PMU_IOC_CAN_SLEEP _IOR('B', 5, size_t)
  6712. /* no param, but historically was _IOR('B', 6, 0), meaning 4 bytes */
  6713. #define PMU_IOC_GRAB_BACKLIGHT _IOR('B', 6, size_t)
  6714. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/reiserfs_fs.h linux-libc-headers-2.6.8.0/include/linux/reiserfs_fs.h
  6715. --- linux-libc-headers-2.6.8.0-dist/include/linux/reiserfs_fs.h 2004-08-18 13:16:04.000000000 -0500
  6716. +++ linux-libc-headers-2.6.8.0/include/linux/reiserfs_fs.h 2004-08-26 13:26:06.000000000 -0500
  6717. @@ -1821,7 +1821,7 @@
  6718. * to use for a new object underneat it. The locality is returned
  6719. * in disk byte order (le).
  6720. */
  6721. -u32 reiserfs_choose_packing(struct inode *dir);
  6722. +__u32 reiserfs_choose_packing(struct inode *dir);
  6723. int is_reusable (struct super_block * s, b_blocknr_t block, int bit_value);
  6724. void reiserfs_free_block (struct reiserfs_transaction_handle *th, struct inode *, b_blocknr_t, int for_unformatted);
  6725. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/scx200_gpio.h linux-libc-headers-2.6.8.0/include/linux/scx200_gpio.h
  6726. --- linux-libc-headers-2.6.8.0-dist/include/linux/scx200_gpio.h 2004-01-17 17:04:32.000000000 -0600
  6727. +++ linux-libc-headers-2.6.8.0/include/linux/scx200_gpio.h 2004-08-26 13:26:01.000000000 -0500
  6728. @@ -1,5 +1,5 @@
  6729. -u32 scx200_gpio_configure(int index, u32 set, u32 clear);
  6730. +__u32 scx200_gpio_configure(int index, __u32 set, __u32 clear);
  6731. void scx200_gpio_dump(unsigned index);
  6732. extern unsigned scx200_gpio_base;
  6733. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/sdladrv.h linux-libc-headers-2.6.8.0/include/linux/sdladrv.h
  6734. --- linux-libc-headers-2.6.8.0-dist/include/linux/sdladrv.h 2003-12-15 12:46:58.000000000 -0600
  6735. +++ linux-libc-headers-2.6.8.0/include/linux/sdladrv.h 2004-08-26 05:42:08.000000000 -0500
  6736. @@ -55,8 +55,8 @@
  6737. extern int sdla_inten (sdlahw_t* hw);
  6738. extern int sdla_intde (sdlahw_t* hw);
  6739. extern int sdla_intack (sdlahw_t* hw);
  6740. -extern void S514_intack (sdlahw_t* hw, u32 int_status);
  6741. -extern void read_S514_int_stat (sdlahw_t* hw, u32* int_status);
  6742. +extern void S514_intack (sdlahw_t* hw, __u32 int_status);
  6743. +extern void read_S514_int_stat (sdlahw_t* hw, __u32* int_status);
  6744. extern int sdla_intr (sdlahw_t* hw);
  6745. extern int sdla_mapmem (sdlahw_t* hw, unsigned long addr);
  6746. extern int sdla_peek (sdlahw_t* hw, unsigned long addr, void* buf,
  6747. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/selection.h linux-libc-headers-2.6.8.0/include/linux/selection.h
  6748. --- linux-libc-headers-2.6.8.0-dist/include/linux/selection.h 2004-06-23 16:52:56.000000000 -0500
  6749. +++ linux-libc-headers-2.6.8.0/include/linux/selection.h 2004-08-26 05:42:08.000000000 -0500
  6750. @@ -32,14 +32,14 @@
  6751. extern int default_blu[];
  6752. extern unsigned short *screen_pos(int currcons, int w_offset, int viewed);
  6753. -extern u16 screen_glyph(int currcons, int offset);
  6754. +extern __u16 screen_glyph(int currcons, int offset);
  6755. extern void complement_pos(int currcons, int offset);
  6756. extern void invert_screen(int currcons, int offset, int count, int shift);
  6757. extern void getconsxy(int currcons, unsigned char *p);
  6758. extern void putconsxy(int currcons, unsigned char *p);
  6759. -extern u16 vcs_scr_readw(int currcons, const u16 *org);
  6760. -extern void vcs_scr_writew(int currcons, u16 val, u16 *org);
  6761. +extern __u16 vcs_scr_readw(int currcons, const __u16 *org);
  6762. +extern void vcs_scr_writew(int currcons, __u16 val, __u16 *org);
  6763. #endif
  6764. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/serialP.h linux-libc-headers-2.6.8.0/include/linux/serialP.h
  6765. --- linux-libc-headers-2.6.8.0-dist/include/linux/serialP.h 2004-08-18 13:16:04.000000000 -0500
  6766. +++ linux-libc-headers-2.6.8.0/include/linux/serialP.h 2004-08-26 05:42:08.000000000 -0500
  6767. @@ -39,8 +39,8 @@
  6768. int xmit_fifo_size;
  6769. int custom_divisor;
  6770. int count;
  6771. - u8 *iomem_base;
  6772. - u16 iomem_reg_shift;
  6773. + __u8 *iomem_base;
  6774. + __u16 iomem_reg_shift;
  6775. unsigned short close_delay;
  6776. unsigned short closing_wait; /* time to wait before closing */
  6777. struct async_icount icount;
  6778. @@ -75,8 +75,8 @@
  6779. int blocked_open; /* # of blocked opens */
  6780. struct circ_buf xmit;
  6781. spinlock_t xmit_lock;
  6782. - u8 *iomem_base;
  6783. - u16 iomem_reg_shift;
  6784. + __u8 *iomem_base;
  6785. + __u16 iomem_reg_shift;
  6786. int io_type;
  6787. struct work_struct work;
  6788. struct tasklet_struct tlet;
  6789. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/clnt.h linux-libc-headers-2.6.8.0/include/linux/sunrpc/clnt.h
  6790. --- linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/clnt.h 2004-02-29 10:36:05.000000000 -0600
  6791. +++ linux-libc-headers-2.6.8.0/include/linux/sunrpc/clnt.h 2004-08-26 05:42:08.000000000 -0500
  6792. @@ -36,7 +36,7 @@
  6793. atomic_t cl_users; /* number of references */
  6794. struct rpc_xprt * cl_xprt; /* transport */
  6795. struct rpc_procinfo * cl_procinfo; /* procedure info */
  6796. - u32 cl_maxproc; /* max procedure number */
  6797. + __u32 cl_maxproc; /* max procedure number */
  6798. char * cl_server; /* server machine name */
  6799. char * cl_protname; /* protocol name */
  6800. @@ -75,7 +75,7 @@
  6801. #define RPC_MAXVERSION 4
  6802. struct rpc_program {
  6803. char * name; /* protocol name */
  6804. - u32 number; /* program number */
  6805. + __u32 number; /* program number */
  6806. unsigned int nrvers; /* number of versions */
  6807. struct rpc_version ** version; /* version array */
  6808. struct rpc_stat * stats; /* statistics */
  6809. @@ -83,7 +83,7 @@
  6810. };
  6811. struct rpc_version {
  6812. - u32 number; /* version number */
  6813. + __u32 number; /* version number */
  6814. unsigned int nrprocs; /* number of procs */
  6815. struct rpc_procinfo * procs; /* procedure array */
  6816. };
  6817. @@ -92,7 +92,7 @@
  6818. * Procedure information
  6819. */
  6820. struct rpc_procinfo {
  6821. - u32 p_proc; /* RPC procedure number */
  6822. + __u32 p_proc; /* RPC procedure number */
  6823. kxdrproc_t p_encode; /* XDR encode function */
  6824. kxdrproc_t p_decode; /* XDR decode function */
  6825. unsigned int p_bufsiz; /* req. buffer size */
  6826. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/gss_asn1.h linux-libc-headers-2.6.8.0/include/linux/sunrpc/gss_asn1.h
  6827. --- linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/gss_asn1.h 2004-06-23 16:52:58.000000000 -0500
  6828. +++ linux-libc-headers-2.6.8.0/include/linux/sunrpc/gss_asn1.h 2004-08-26 13:26:25.000000000 -0500
  6829. @@ -64,14 +64,14 @@
  6830. (((o1)->len == (o2)->len) && \
  6831. (memcmp((o1)->data,(o2)->data,(int) (o1)->len) == 0))
  6832. -u32 g_verify_token_header(
  6833. +__u32 g_verify_token_header(
  6834. struct xdr_netobj *mech,
  6835. int *body_size,
  6836. unsigned char **buf_in,
  6837. int tok_type,
  6838. int toksize);
  6839. -u32 g_get_mech_oid(struct xdr_netobj *mech, struct xdr_netobj * in_buf);
  6840. +__u32 g_get_mech_oid(struct xdr_netobj *mech, struct xdr_netobj * in_buf);
  6841. int g_token_size(
  6842. struct xdr_netobj *mech,
  6843. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/gss_krb5.h linux-libc-headers-2.6.8.0/include/linux/sunrpc/gss_krb5.h
  6844. --- linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/gss_krb5.h 2004-06-23 16:52:58.000000000 -0500
  6845. +++ linux-libc-headers-2.6.8.0/include/linux/sunrpc/gss_krb5.h 2004-08-26 13:26:21.000000000 -0500
  6846. @@ -46,8 +46,8 @@
  6847. int sealalg;
  6848. struct crypto_tfm *enc;
  6849. struct crypto_tfm *seq;
  6850. - s32 endtime;
  6851. - u32 seq_send;
  6852. + __s32 endtime;
  6853. + __u32 seq_send;
  6854. struct xdr_netobj mech_used;
  6855. };
  6856. @@ -112,35 +112,35 @@
  6857. #define ENCTYPE_DES3_CBC_SHA1 0x0010
  6858. #define ENCTYPE_UNKNOWN 0x01ff
  6859. -s32
  6860. -make_checksum(s32 cksumtype, char *header, int hdrlen, struct xdr_buf *body,
  6861. +__s32
  6862. +make_checksum(__s32 cksumtype, char *header, int hdrlen, struct xdr_buf *body,
  6863. struct xdr_netobj *cksum);
  6864. -u32
  6865. +__u32
  6866. krb5_make_token(struct krb5_ctx *context_handle, int qop_req,
  6867. struct xdr_buf *input_message_buffer,
  6868. struct xdr_netobj *output_message_buffer, int toktype);
  6869. -u32
  6870. +__u32
  6871. krb5_read_token(struct krb5_ctx *context_handle,
  6872. struct xdr_netobj *input_token_buffer,
  6873. struct xdr_buf *message_buffer,
  6874. int *qop_state, int toktype);
  6875. -u32
  6876. +__u32
  6877. krb5_encrypt(struct crypto_tfm * key,
  6878. void *iv, void *in, void *out, int length);
  6879. -u32
  6880. +__u32
  6881. krb5_decrypt(struct crypto_tfm * key,
  6882. void *iv, void *in, void *out, int length);
  6883. -s32
  6884. +__s32
  6885. krb5_make_seq_num(struct crypto_tfm * key,
  6886. int direction,
  6887. - s32 seqnum, unsigned char *cksum, unsigned char *buf);
  6888. + __s32 seqnum, unsigned char *cksum, unsigned char *buf);
  6889. -s32
  6890. +__s32
  6891. krb5_get_seq_num(struct crypto_tfm * key,
  6892. unsigned char *cksum,
  6893. - unsigned char *buf, int *direction, s32 * seqnum);
  6894. + unsigned char *buf, int *direction, __s32 * seqnum);
  6895. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/svc.h linux-libc-headers-2.6.8.0/include/linux/sunrpc/svc.h
  6896. --- linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/svc.h 2004-08-18 13:16:07.000000000 -0500
  6897. +++ linux-libc-headers-2.6.8.0/include/linux/sunrpc/svc.h 2004-08-26 05:42:08.000000000 -0500
  6898. @@ -75,20 +75,20 @@
  6899. */
  6900. #define RPCSVC_MAXPAGES ((RPCSVC_MAXPAYLOAD+PAGE_SIZE-1)/PAGE_SIZE + 2)
  6901. -static inline u32 svc_getu32(struct kvec *iov)
  6902. +static inline __u32 svc_getu32(struct kvec *iov)
  6903. {
  6904. - u32 val, *vp;
  6905. + __u32 val, *vp;
  6906. vp = iov->iov_base;
  6907. val = *vp++;
  6908. iov->iov_base = (void*)vp;
  6909. - iov->iov_len -= sizeof(u32);
  6910. + iov->iov_len -= sizeof(__u32);
  6911. return val;
  6912. }
  6913. -static inline void svc_putu32(struct kvec *iov, u32 val)
  6914. +static inline void svc_putu32(struct kvec *iov, __u32 val)
  6915. {
  6916. - u32 *vp = iov->iov_base + iov->iov_len;
  6917. + __u32 *vp = iov->iov_base + iov->iov_len;
  6918. *vp = val;
  6919. - iov->iov_len += sizeof(u32);
  6920. + iov->iov_len += sizeof(__u32);
  6921. }
  6922. @@ -119,11 +119,11 @@
  6923. short rq_arghi; /* pages available in argument page list */
  6924. short rq_resused; /* pages used for result */
  6925. - u32 rq_xid; /* transmission id */
  6926. - u32 rq_prog; /* program number */
  6927. - u32 rq_vers; /* program version */
  6928. - u32 rq_proc; /* procedure number */
  6929. - u32 rq_prot; /* IP protocol */
  6930. + __u32 rq_xid; /* transmission id */
  6931. + __u32 rq_prog; /* program number */
  6932. + __u32 rq_vers; /* program version */
  6933. + __u32 rq_proc; /* procedure number */
  6934. + __u32 rq_prot; /* IP protocol */
  6935. unsigned short
  6936. rq_secure : 1; /* secure port */
  6937. @@ -156,7 +156,7 @@
  6938. * Check buffer bounds after decoding arguments
  6939. */
  6940. static inline int
  6941. -xdr_argsize_check(struct svc_rqst *rqstp, u32 *p)
  6942. +xdr_argsize_check(struct svc_rqst *rqstp, __u32 *p)
  6943. {
  6944. char *cp = (char *)p;
  6945. struct kvec *vec = &rqstp->rq_arg.head[0];
  6946. @@ -164,7 +164,7 @@
  6947. }
  6948. static inline int
  6949. -xdr_ressize_check(struct svc_rqst *rqstp, u32 *p)
  6950. +xdr_ressize_check(struct svc_rqst *rqstp, __u32 *p)
  6951. {
  6952. struct kvec *vec = &rqstp->rq_res.head[0];
  6953. char *cp = (char*)p;
  6954. @@ -220,19 +220,19 @@
  6955. }
  6956. struct svc_deferred_req {
  6957. - u32 prot; /* protocol (UDP or TCP) */
  6958. + __u32 prot; /* protocol (UDP or TCP) */
  6959. struct sockaddr_in addr;
  6960. struct svc_sock *svsk; /* where reply must go */
  6961. struct cache_deferred_req handle;
  6962. int argslen;
  6963. - u32 args[0];
  6964. + __u32 args[0];
  6965. };
  6966. /*
  6967. * RPC program
  6968. */
  6969. struct svc_program {
  6970. - u32 pg_prog; /* program number */
  6971. + __u32 pg_prog; /* program number */
  6972. unsigned int pg_lovers; /* lowest version */
  6973. unsigned int pg_hivers; /* lowest version */
  6974. unsigned int pg_nvers; /* number of versions */
  6975. @@ -246,16 +246,16 @@
  6976. * RPC program version
  6977. */
  6978. struct svc_version {
  6979. - u32 vs_vers; /* version number */
  6980. - u32 vs_nproc; /* number of procedures */
  6981. + __u32 vs_vers; /* version number */
  6982. + __u32 vs_nproc; /* number of procedures */
  6983. struct svc_procedure * vs_proc; /* per-procedure info */
  6984. - u32 vs_xdrsize; /* xdrsize needed for this version */
  6985. + __u32 vs_xdrsize; /* xdrsize needed for this version */
  6986. /* Override dispatch function (e.g. when caching replies).
  6987. * A return value of 0 means drop the request.
  6988. * vs_dispatch == NULL means use default dispatcher.
  6989. */
  6990. - int (*vs_dispatch)(struct svc_rqst *, u32 *);
  6991. + int (*vs_dispatch)(struct svc_rqst *, __u32 *);
  6992. };
  6993. /*
  6994. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/xprt.h linux-libc-headers-2.6.8.0/include/linux/sunrpc/xprt.h
  6995. --- linux-libc-headers-2.6.8.0-dist/include/linux/sunrpc/xprt.h 2004-06-23 16:52:58.000000000 -0500
  6996. +++ linux-libc-headers-2.6.8.0/include/linux/sunrpc/xprt.h 2004-08-26 05:42:08.000000000 -0500
  6997. @@ -93,7 +93,7 @@
  6998. __u32 rq_xid; /* request XID */
  6999. int rq_cong; /* has incremented xprt->cong */
  7000. int rq_received; /* receive completed */
  7001. - u32 rq_seqno; /* gss seq no. used on req. */
  7002. + __u32 rq_seqno; /* gss seq no. used on req. */
  7003. struct list_head rq_list;
  7004. @@ -106,13 +106,13 @@
  7005. /*
  7006. * For authentication (e.g. auth_des)
  7007. */
  7008. - u32 rq_creddata[2];
  7009. + __u32 rq_creddata[2];
  7010. /*
  7011. * Partial send handling
  7012. */
  7013. - u32 rq_bytes_sent; /* Bytes we have sent */
  7014. + __u32 rq_bytes_sent; /* Bytes we have sent */
  7015. unsigned long rq_xtime; /* when transmitted */
  7016. int rq_ntrans;
  7017. @@ -160,7 +160,7 @@
  7018. /*
  7019. * State of TCP reply receive stuff
  7020. */
  7021. - u32 tcp_recm, /* Fragment header */
  7022. + __u32 tcp_recm, /* Fragment header */
  7023. tcp_xid, /* Current XID */
  7024. tcp_reclen, /* fragment length */
  7025. tcp_offset; /* fragment offset */
  7026. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/suspend.h linux-libc-headers-2.6.8.0/include/linux/suspend.h
  7027. --- linux-libc-headers-2.6.8.0-dist/include/linux/suspend.h 2004-08-18 13:16:05.000000000 -0500
  7028. +++ linux-libc-headers-2.6.8.0/include/linux/suspend.h 2004-08-26 05:42:08.000000000 -0500
  7029. @@ -23,7 +23,7 @@
  7030. #define SWAP_FILENAME_MAXLENGTH 32
  7031. struct suspend_header {
  7032. - u32 version_code;
  7033. + __u32 version_code;
  7034. unsigned long num_physpages;
  7035. char machine[8];
  7036. char version[20];
  7037. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/sysdev.h linux-libc-headers-2.6.8.0/include/linux/sysdev.h
  7038. --- linux-libc-headers-2.6.8.0-dist/include/linux/sysdev.h 2004-03-28 07:52:11.000000000 -0600
  7039. +++ linux-libc-headers-2.6.8.0/include/linux/sysdev.h 2004-08-26 05:42:08.000000000 -0500
  7040. @@ -31,7 +31,7 @@
  7041. /* Default operations for these types of devices */
  7042. int (*shutdown)(struct sys_device *);
  7043. - int (*suspend)(struct sys_device *, u32 state);
  7044. + int (*suspend)(struct sys_device *, __u32 state);
  7045. int (*resume)(struct sys_device *);
  7046. struct kset kset;
  7047. };
  7048. @@ -50,7 +50,7 @@
  7049. int (*add)(struct sys_device *);
  7050. int (*remove)(struct sys_device *);
  7051. int (*shutdown)(struct sys_device *);
  7052. - int (*suspend)(struct sys_device *, u32 state);
  7053. + int (*suspend)(struct sys_device *, __u32 state);
  7054. int (*resume)(struct sys_device *);
  7055. };
  7056. @@ -65,7 +65,7 @@
  7057. */
  7058. struct sys_device {
  7059. - u32 id;
  7060. + __u32 id;
  7061. struct sysdev_class * cls;
  7062. struct kobject kobj;
  7063. };
  7064. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/sysv_fs.h linux-libc-headers-2.6.8.0/include/linux/sysv_fs.h
  7065. --- linux-libc-headers-2.6.8.0-dist/include/linux/sysv_fs.h 2003-12-15 12:46:58.000000000 -0600
  7066. +++ linux-libc-headers-2.6.8.0/include/linux/sysv_fs.h 2004-08-26 05:42:08.000000000 -0500
  7067. @@ -9,12 +9,12 @@
  7068. /* inode numbers are 16 bit */
  7069. -typedef u16 sysv_ino_t;
  7070. +typedef __u16 sysv_ino_t;
  7071. /* Block numbers are 24 bit, sometimes stored in 32 bit.
  7072. On Coherent FS, they are always stored in PDP-11 manner: the least
  7073. significant 16 bits come last. */
  7074. -typedef u32 sysv_zone_t;
  7075. +typedef __u32 sysv_zone_t;
  7076. /* 0 is non-existent */
  7077. #define SYSV_BADBL_INO 1 /* inode of bad blocks file */
  7078. @@ -25,29 +25,29 @@
  7079. #define XENIX_NICINOD 100 /* number of inode cache entries */
  7080. #define XENIX_NICFREE 100 /* number of free block list chunk entries */
  7081. struct xenix_super_block {
  7082. - u16 s_isize; /* index of first data zone */
  7083. - u32 s_fsize __packed2__; /* total number of zones of this fs */
  7084. + __u16 s_isize; /* index of first data zone */
  7085. + __u32 s_fsize __packed2__; /* total number of zones of this fs */
  7086. /* the start of the free block list: */
  7087. - u16 s_nfree; /* number of free blocks in s_free, <= XENIX_NICFREE */
  7088. - u32 s_free[XENIX_NICFREE]; /* first free block list chunk */
  7089. + __u16 s_nfree; /* number of free blocks in s_free, <= XENIX_NICFREE */
  7090. + __u32 s_free[XENIX_NICFREE]; /* first free block list chunk */
  7091. /* the cache of free inodes: */
  7092. - u16 s_ninode; /* number of free inodes in s_inode, <= XENIX_NICINOD */
  7093. + __u16 s_ninode; /* number of free inodes in s_inode, <= XENIX_NICINOD */
  7094. sysv_ino_t s_inode[XENIX_NICINOD]; /* some free inodes */
  7095. /* locks, not used by Linux: */
  7096. char s_flock; /* lock during free block list manipulation */
  7097. char s_ilock; /* lock during inode cache manipulation */
  7098. char s_fmod; /* super-block modified flag */
  7099. char s_ronly; /* flag whether fs is mounted read-only */
  7100. - u32 s_time __packed2__; /* time of last super block update */
  7101. - u32 s_tfree __packed2__; /* total number of free zones */
  7102. - u16 s_tinode; /* total number of free inodes */
  7103. - s16 s_dinfo[4]; /* device information ?? */
  7104. + __u32 s_time __packed2__; /* time of last super block update */
  7105. + __u32 s_tfree __packed2__; /* total number of free zones */
  7106. + __u16 s_tinode; /* total number of free inodes */
  7107. + __s16 s_dinfo[4]; /* device information ?? */
  7108. char s_fname[6]; /* file system volume name */
  7109. char s_fpack[6]; /* file system pack name */
  7110. char s_clean; /* set to 0x46 when filesystem is properly unmounted */
  7111. char s_fill[371];
  7112. - s32 s_magic; /* version of file system */
  7113. - s32 s_type; /* type of file system: 1 for 512 byte blocks
  7114. + __s32 s_magic; /* version of file system */
  7115. + __s32 s_type; /* type of file system: 1 for 512 byte blocks
  7116. 2 for 1024 byte blocks
  7117. 3 for 2048 byte blocks */
  7118. @@ -63,61 +63,61 @@
  7119. /* SystemV4 super-block data on disk */
  7120. struct sysv4_super_block {
  7121. - u16 s_isize; /* index of first data zone */
  7122. - u16 s_pad0;
  7123. - u32 s_fsize; /* total number of zones of this fs */
  7124. + __u16 s_isize; /* index of first data zone */
  7125. + __u16 s_pad0;
  7126. + __u32 s_fsize; /* total number of zones of this fs */
  7127. /* the start of the free block list: */
  7128. - u16 s_nfree; /* number of free blocks in s_free, <= SYSV_NICFREE */
  7129. - u16 s_pad1;
  7130. - u32 s_free[SYSV_NICFREE]; /* first free block list chunk */
  7131. + __u16 s_nfree; /* number of free blocks in s_free, <= SYSV_NICFREE */
  7132. + __u16 s_pad1;
  7133. + __u32 s_free[SYSV_NICFREE]; /* first free block list chunk */
  7134. /* the cache of free inodes: */
  7135. - u16 s_ninode; /* number of free inodes in s_inode, <= SYSV_NICINOD */
  7136. - u16 s_pad2;
  7137. + __u16 s_ninode; /* number of free inodes in s_inode, <= SYSV_NICINOD */
  7138. + __u16 s_pad2;
  7139. sysv_ino_t s_inode[SYSV_NICINOD]; /* some free inodes */
  7140. /* locks, not used by Linux: */
  7141. char s_flock; /* lock during free block list manipulation */
  7142. char s_ilock; /* lock during inode cache manipulation */
  7143. char s_fmod; /* super-block modified flag */
  7144. char s_ronly; /* flag whether fs is mounted read-only */
  7145. - u32 s_time; /* time of last super block update */
  7146. - s16 s_dinfo[4]; /* device information ?? */
  7147. - u32 s_tfree; /* total number of free zones */
  7148. - u16 s_tinode; /* total number of free inodes */
  7149. - u16 s_pad3;
  7150. + __u32 s_time; /* time of last super block update */
  7151. + __s16 s_dinfo[4]; /* device information ?? */
  7152. + __u32 s_tfree; /* total number of free zones */
  7153. + __u16 s_tinode; /* total number of free inodes */
  7154. + __u16 s_pad3;
  7155. char s_fname[6]; /* file system volume name */
  7156. char s_fpack[6]; /* file system pack name */
  7157. - s32 s_fill[12];
  7158. - s32 s_state; /* file system state: 0x7c269d38-s_time means clean */
  7159. - s32 s_magic; /* version of file system */
  7160. - s32 s_type; /* type of file system: 1 for 512 byte blocks
  7161. + __s32 s_fill[12];
  7162. + __s32 s_state; /* file system state: 0x7c269d38-s_time means clean */
  7163. + __s32 s_magic; /* version of file system */
  7164. + __s32 s_type; /* type of file system: 1 for 512 byte blocks
  7165. 2 for 1024 byte blocks */
  7166. };
  7167. /* SystemV2 super-block data on disk */
  7168. struct sysv2_super_block {
  7169. - u16 s_isize; /* index of first data zone */
  7170. - u32 s_fsize __packed2__; /* total number of zones of this fs */
  7171. + __u16 s_isize; /* index of first data zone */
  7172. + __u32 s_fsize __packed2__; /* total number of zones of this fs */
  7173. /* the start of the free block list: */
  7174. - u16 s_nfree; /* number of free blocks in s_free, <= SYSV_NICFREE */
  7175. - u32 s_free[SYSV_NICFREE]; /* first free block list chunk */
  7176. + __u16 s_nfree; /* number of free blocks in s_free, <= SYSV_NICFREE */
  7177. + __u32 s_free[SYSV_NICFREE]; /* first free block list chunk */
  7178. /* the cache of free inodes: */
  7179. - u16 s_ninode; /* number of free inodes in s_inode, <= SYSV_NICINOD */
  7180. + __u16 s_ninode; /* number of free inodes in s_inode, <= SYSV_NICINOD */
  7181. sysv_ino_t s_inode[SYSV_NICINOD]; /* some free inodes */
  7182. /* locks, not used by Linux: */
  7183. char s_flock; /* lock during free block list manipulation */
  7184. char s_ilock; /* lock during inode cache manipulation */
  7185. char s_fmod; /* super-block modified flag */
  7186. char s_ronly; /* flag whether fs is mounted read-only */
  7187. - u32 s_time __packed2__; /* time of last super block update */
  7188. - s16 s_dinfo[4]; /* device information ?? */
  7189. - u32 s_tfree __packed2__; /* total number of free zones */
  7190. - u16 s_tinode; /* total number of free inodes */
  7191. + __u32 s_time __packed2__; /* time of last super block update */
  7192. + __s16 s_dinfo[4]; /* device information ?? */
  7193. + __u32 s_tfree __packed2__; /* total number of free zones */
  7194. + __u16 s_tinode; /* total number of free inodes */
  7195. char s_fname[6]; /* file system volume name */
  7196. char s_fpack[6]; /* file system pack name */
  7197. - s32 s_fill[14];
  7198. - s32 s_state; /* file system state: 0xcb096f43 means clean */
  7199. - s32 s_magic; /* version of file system */
  7200. - s32 s_type; /* type of file system: 1 for 512 byte blocks
  7201. + __s32 s_fill[14];
  7202. + __s32 s_state; /* file system state: 0xcb096f43 means clean */
  7203. + __s32 s_magic; /* version of file system */
  7204. + __s32 s_type; /* type of file system: 1 for 512 byte blocks
  7205. 2 for 1024 byte blocks */
  7206. };
  7207. @@ -125,25 +125,25 @@
  7208. #define V7_NICINOD 100 /* number of inode cache entries */
  7209. #define V7_NICFREE 50 /* number of free block list chunk entries */
  7210. struct v7_super_block {
  7211. - u16 s_isize; /* index of first data zone */
  7212. - u32 s_fsize __packed2__; /* total number of zones of this fs */
  7213. + __u16 s_isize; /* index of first data zone */
  7214. + __u32 s_fsize __packed2__; /* total number of zones of this fs */
  7215. /* the start of the free block list: */
  7216. - u16 s_nfree; /* number of free blocks in s_free, <= V7_NICFREE */
  7217. - u32 s_free[V7_NICFREE]; /* first free block list chunk */
  7218. + __u16 s_nfree; /* number of free blocks in s_free, <= V7_NICFREE */
  7219. + __u32 s_free[V7_NICFREE]; /* first free block list chunk */
  7220. /* the cache of free inodes: */
  7221. - u16 s_ninode; /* number of free inodes in s_inode, <= V7_NICINOD */
  7222. + __u16 s_ninode; /* number of free inodes in s_inode, <= V7_NICINOD */
  7223. sysv_ino_t s_inode[V7_NICINOD]; /* some free inodes */
  7224. /* locks, not used by Linux or V7: */
  7225. char s_flock; /* lock during free block list manipulation */
  7226. char s_ilock; /* lock during inode cache manipulation */
  7227. char s_fmod; /* super-block modified flag */
  7228. char s_ronly; /* flag whether fs is mounted read-only */
  7229. - u32 s_time __packed2__; /* time of last super block update */
  7230. + __u32 s_time __packed2__; /* time of last super block update */
  7231. /* the following fields are not maintained by V7: */
  7232. - u32 s_tfree __packed2__; /* total number of free zones */
  7233. - u16 s_tinode; /* total number of free inodes */
  7234. - u16 s_m; /* interleave factor */
  7235. - u16 s_n; /* interleave factor */
  7236. + __u32 s_tfree __packed2__; /* total number of free zones */
  7237. + __u16 s_tinode; /* total number of free inodes */
  7238. + __u16 s_m; /* interleave factor */
  7239. + __u16 s_n; /* interleave factor */
  7240. char s_fname[6]; /* file system name */
  7241. char s_fpack[6]; /* file system pack name */
  7242. };
  7243. @@ -152,41 +152,41 @@
  7244. #define COH_NICINOD 100 /* number of inode cache entries */
  7245. #define COH_NICFREE 64 /* number of free block list chunk entries */
  7246. struct coh_super_block {
  7247. - u16 s_isize; /* index of first data zone */
  7248. - u32 s_fsize __packed2__; /* total number of zones of this fs */
  7249. + __u16 s_isize; /* index of first data zone */
  7250. + __u32 s_fsize __packed2__; /* total number of zones of this fs */
  7251. /* the start of the free block list: */
  7252. - u16 s_nfree; /* number of free blocks in s_free, <= COH_NICFREE */
  7253. - u32 s_free[COH_NICFREE] __packed2__; /* first free block list chunk */
  7254. + __u16 s_nfree; /* number of free blocks in s_free, <= COH_NICFREE */
  7255. + __u32 s_free[COH_NICFREE] __packed2__; /* first free block list chunk */
  7256. /* the cache of free inodes: */
  7257. - u16 s_ninode; /* number of free inodes in s_inode, <= COH_NICINOD */
  7258. + __u16 s_ninode; /* number of free inodes in s_inode, <= COH_NICINOD */
  7259. sysv_ino_t s_inode[COH_NICINOD]; /* some free inodes */
  7260. /* locks, not used by Linux: */
  7261. char s_flock; /* lock during free block list manipulation */
  7262. char s_ilock; /* lock during inode cache manipulation */
  7263. char s_fmod; /* super-block modified flag */
  7264. char s_ronly; /* flag whether fs is mounted read-only */
  7265. - u32 s_time __packed2__; /* time of last super block update */
  7266. - u32 s_tfree __packed2__; /* total number of free zones */
  7267. - u16 s_tinode; /* total number of free inodes */
  7268. - u16 s_interleave_m; /* interleave factor */
  7269. - u16 s_interleave_n;
  7270. + __u32 s_time __packed2__; /* time of last super block update */
  7271. + __u32 s_tfree __packed2__; /* total number of free zones */
  7272. + __u16 s_tinode; /* total number of free inodes */
  7273. + __u16 s_interleave_m; /* interleave factor */
  7274. + __u16 s_interleave_n;
  7275. char s_fname[6]; /* file system volume name */
  7276. char s_fpack[6]; /* file system pack name */
  7277. - u32 s_unique; /* zero, not used */
  7278. + __u32 s_unique; /* zero, not used */
  7279. };
  7280. /* SystemV/Coherent inode data on disk */
  7281. struct sysv_inode {
  7282. - u16 i_mode;
  7283. - u16 i_nlink;
  7284. - u16 i_uid;
  7285. - u16 i_gid;
  7286. - u32 i_size;
  7287. - u8 i_data[3*(10+1+1+1)];
  7288. - u8 i_gen;
  7289. - u32 i_atime; /* time of last access */
  7290. - u32 i_mtime; /* time of last modification */
  7291. - u32 i_ctime; /* time of creation */
  7292. + __u16 i_mode;
  7293. + __u16 i_nlink;
  7294. + __u16 i_uid;
  7295. + __u16 i_gid;
  7296. + __u32 i_size;
  7297. + __u8 i_data[3*(10+1+1+1)];
  7298. + __u8 i_gen;
  7299. + __u32 i_atime; /* time of last access */
  7300. + __u32 i_mtime; /* time of last modification */
  7301. + __u32 i_ctime; /* time of creation */
  7302. };
  7303. /* SystemV/Coherent directory entry on disk */
  7304. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/tiocl.h linux-libc-headers-2.6.8.0/include/linux/tiocl.h
  7305. --- linux-libc-headers-2.6.8.0-dist/include/linux/tiocl.h 2003-12-15 12:46:58.000000000 -0600
  7306. +++ linux-libc-headers-2.6.8.0/include/linux/tiocl.h 2004-08-26 05:42:08.000000000 -0500
  7307. @@ -23,7 +23,7 @@
  7308. #define TIOCL_SELLOADLUT 5
  7309. /* set characters to be considered alphabetic when selecting */
  7310. - /* u32[8] bit array, 4 bytes-aligned with type */
  7311. + /* __u32[8] bit array, 4 bytes-aligned with type */
  7312. /* these two don't return a value: they write it back in the type */
  7313. #define TIOCL_GETSHIFTSTATE 6 /* write shift state */
  7314. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/umem.h linux-libc-headers-2.6.8.0/include/linux/umem.h
  7315. --- linux-libc-headers-2.6.8.0-dist/include/linux/umem.h 2003-12-15 12:46:58.000000000 -0600
  7316. +++ linux-libc-headers-2.6.8.0/include/linux/umem.h 2004-08-26 05:42:08.000000000 -0500
  7317. @@ -110,19 +110,19 @@
  7318. #define DMA_WRITE_TO_HOST 1
  7319. struct mm_dma_desc {
  7320. - u64 pci_addr;
  7321. - u64 local_addr;
  7322. - u32 transfer_size;
  7323. - u32 zero1;
  7324. - u64 next_desc_addr;
  7325. - u64 sem_addr;
  7326. - u32 control_bits;
  7327. - u32 zero2;
  7328. + __u64 pci_addr;
  7329. + __u64 local_addr;
  7330. + __u32 transfer_size;
  7331. + __u32 zero1;
  7332. + __u64 next_desc_addr;
  7333. + __u64 sem_addr;
  7334. + __u32 control_bits;
  7335. + __u32 zero2;
  7336. dma_addr_t data_dma_handle;
  7337. /* Copy of the bits */
  7338. - u64 sem_control_bits;
  7339. + __u64 sem_control_bits;
  7340. } __attribute__((aligned(8)));
  7341. #define PCI_VENDOR_ID_MICRO_MEMORY 0x1332
  7342. diff -urN linux-libc-headers-2.6.8.0-dist/include/linux/vt_buffer.h linux-libc-headers-2.6.8.0/include/linux/vt_buffer.h
  7343. --- linux-libc-headers-2.6.8.0-dist/include/linux/vt_buffer.h 2004-01-17 17:04:33.000000000 -0600
  7344. +++ linux-libc-headers-2.6.8.0/include/linux/vt_buffer.h 2004-08-26 05:42:08.000000000 -0500
  7345. @@ -28,7 +28,7 @@
  7346. #endif
  7347. #ifndef VT_BUF_HAVE_MEMSETW
  7348. -static inline void scr_memsetw(u16 *s, u16 c, unsigned int count)
  7349. +static inline void scr_memsetw(__u16 *s, __u16 c, unsigned int count)
  7350. {
  7351. count /= 2;
  7352. while (count--)
  7353. @@ -37,7 +37,7 @@
  7354. #endif
  7355. #ifndef VT_BUF_HAVE_MEMCPYW
  7356. -static inline void scr_memcpyw(u16 *d, const u16 *s, unsigned int count)
  7357. +static inline void scr_memcpyw(__u16 *d, const __u16 *s, unsigned int count)
  7358. {
  7359. count /= 2;
  7360. while (count--)
  7361. @@ -46,7 +46,7 @@
  7362. #endif
  7363. #ifndef VT_BUF_HAVE_MEMMOVEW
  7364. -static inline void scr_memmovew(u16 *d, const u16 *s, unsigned int count)
  7365. +static inline void scr_memmovew(__u16 *d, const __u16 *s, unsigned int count)
  7366. {
  7367. if (d < s)
  7368. scr_memcpyw(d, s, count);