···11/*!*****************************************************************************22*!33-*! Implements an interface for i2c compatible eeproms to run under linux.44-*! Supports 2k, 8k(?) and 16k. Uses adaptive timing adjustents by33+*! Implements an interface for i2c compatible eeproms to run under Linux.44+*! Supports 2k, 8k(?) and 16k. Uses adaptive timing adjustments by55*! Johan.Adolfsson@axis.com66*!77*! Probing results:···5151*! Revision 1.8 2001/06/15 13:24:29 jonashg5252*! * Added verification of pointers from userspace in read and write.5353*! * Made busy counter volatile.5454-*! * Added define for inital write delay.5454+*! * Added define for initial write delay.5555*! * Removed warnings by using loff_t instead of unsigned long.5656*!5757*! Revision 1.7 2001/06/14 15:26:54 jonashg
+1-1
arch/cris/arch-v10/drivers/i2c.c
···4747*! Update Port B register and shadow even when running with hardware support4848*! to avoid glitches when reading bits4949*! Never set direction to out in i2c_inbyte5050-*! Removed incorrect clock togling at end of i2c_inbyte5050+*! Removed incorrect clock toggling at end of i2c_inbyte5151*!5252*! Revision 1.8 2002/08/13 06:31:53 starvik5353*! Made SDA and SCL line configurable
+1-1
arch/cris/arch-v10/kernel/kgdb.c
···3333*!3434*! Revision 1.2 2002/11/19 14:35:24 starvik3535*! Changes from linux 2.43636-*! Changed struct initializer syntax to the currently prefered notation3636+*! Changed struct initializer syntax to the currently preferred notation3737*!3838*! Revision 1.1 2001/12/17 13:59:27 bjornw3939*! Initial revision
+4-4
arch/ia64/hp/common/sba_iommu.c
···7575** If a device prefetches beyond the end of a valid pdir entry, it will cause7676** a hard failure, ie. MCA. Version 3.0 and later of the zx1 LBA should7777** disconnect on 4k boundaries and prevent such issues. If the device is7878-** particularly agressive, this option will keep the entire pdir valid such7878+** particularly aggressive, this option will keep the entire pdir valid such7979** that prefetching will hit a valid address. This could severely impact8080** error containment, and is therefore off by default. The page that is8181** used for spill-over is poisoned, so that should help debugging somewhat.···258258259259/*260260** DMA_CHUNK_SIZE is used by the SCSI mid-layer to break up261261-** (or rather not merge) DMA's into managable chunks.261261+** (or rather not merge) DMAs into manageable chunks.262262** On parisc, this is more of the software/tuning constraint263263-** rather than the HW. I/O MMU allocation alogorithms can be264264-** faster with smaller size is (to some degree).263263+** rather than the HW. I/O MMU allocation algorithms can be264264+** faster with smaller sizes (to some degree).265265*/266266#define DMA_CHUNK_SIZE (BITS_PER_LONG*iovp_size)267267
+1-1
arch/sh64/lib/dbg.c
···383383/* ======================================================================= */384384385385/*386386-** Depending on <base> scan the MMU, Data or Instrction side386386+** Depending on <base> scan the MMU, Data or Instruction side387387** looking for a valid mapping matching Eaddr & asid.388388** Return -1 if not found or the TLB id entry otherwise.389389** Note: it works only for 4k pages!
+1-1
drivers/atm/iphase.c
···305305** | R | NZ | 5-bit exponent | 9-bit mantissa |306306** +----+----+------------------+-------------------------------+307307** 308308-** R = reserverd (written as 0)308308+** R = reserved (written as 0)309309** NZ = 0 if 0 cells/sec; 1 otherwise310310**311311** if NZ = 1, rate = 1.mmmmmmmmm x 2^(eeeee) cells/sec
+1-1
drivers/char/rio/riocmd.c
···922922** 923923** Packet is an actual packet structure to be filled in with the packet924924** information associated with the command. You need to fill in everything,925925-** as the command processore doesn't process the command packet in any way.925925+** as the command processor doesn't process the command packet in any way.926926** 927927** The PreFuncP is called before the packet is enqueued on the host rup.928928** PreFuncP is called as (*PreFuncP)(PreArg, CmdBlkP);. PreFuncP must
+1-1
drivers/char/rio/rioinit.c
···222222** which value will be written into memory.223223** Call with op set to zero means that the RAM will not be read and checked224224** before it is written.225225-** Call with op not zero, and the RAM will be read and compated with val[op-1]225225+** Call with op not zero and the RAM will be read and compared with val[op-1]226226** to check that the data from the previous phase was retained.227227*/228228
+3-3
drivers/char/rio/rioparam.c
···8787** command bit set onto the port. The command bit is in the len field,8888** and gets ORed in with the actual byte count.8989**9090-** When you send a packet with the command bit set, then the first9191-** data byte ( data[0] ) is interpretted as the command to execute.9090+** When you send a packet with the command bit set the first9191+** data byte (data[0]) is interpreted as the command to execute.9292** It also governs what data structure overlay should accompany the packet.9393** Commands are defined in cirrus/cirrus.h9494**···103103**104104** Most commands do not use the remaining bytes in the data array. The105105** exceptions are OPEN MOPEN and CONFIG. (NB. As with the SI CONFIG and106106-** OPEN are currently analagous). With these three commands the following106106+** OPEN are currently analogous). With these three commands the following107107** 11 data bytes are all used to pass config information such as baud rate etc.108108** The fields are also defined in cirrus.h. Some contain straightforward109109** information such as the transmit XON character. Two contain the transmit and
+1-1
drivers/ide/ide-floppy.c
···16351635/*16361636** Get ATAPI_FORMAT_UNIT progress indication.16371637**16381638-** Userland gives a pointer to an int. The int is set to a progresss16381638+** Userland gives a pointer to an int. The int is set to a progress16391639** indicator 0-65536, with 65536=100%.16401640**16411641** If the drive does not support format progress indication, we just check
+1-1
drivers/isdn/hardware/eicon/os_4bri.c
···464464465465/*466466** Cleanup function will be called for master adapter only467467-** this is garanteed by design: cleanup callback is set467467+** this is guaranteed by design: cleanup callback is set468468** by master adapter only469469*/470470static int diva_4bri_cleanup_adapter(diva_os_xdi_adapter_t * a)
+1-1
drivers/isdn/hisax/hfc4s8s_l1.h
···16161717/*1818* include Genero generated HFC-4S/8S header file hfc48scu.h1919-* for comlete register description. This will define _HFC48SCU_H_1919+* for complete register description. This will define _HFC48SCU_H_2020* to prevent redefinitions2121*/2222
+4-4
drivers/media/dvb/ttpci/budget-patch.c
···500500501501/* New design (By Emard)502502** this rps1 code will copy internal HS event to GPIO3 pin.503503-** GPIO3 is in budget-patch hardware connectd to port B VSYNC503503+** GPIO3 is in budget-patch hardware connected to port B VSYNC504504505505** HS is an internal event of 7146, accessible with RPS506506** and temporarily raised high every n lines507507** (n in defined in the RPS_THRESH1 counter threshold)508508** I think HS is raised high on the beginning of the n-th line509509** and remains high until this n-th line that triggered510510-** it is completely received. When the receiption of n-th line510510+** it is completely received. When the reception of n-th line511511** ends, HS is lowered.512512513513** To transmit data over DMA, 7146 needs changing state at···541541** hardware debug note: a working budget card (including budget patch)542542** with vpeirq() interrupt setup in mode "0x90" (every 64K) will543543** generate 3 interrupts per 25-Hz DMA frame of 2*188*512 bytes544544-** and that means 3*25=75 Hz of interrupt freqency, as seen by544544+** and that means 3*25=75 Hz of interrupt frequency, as seen by545545** watch cat /proc/interrupts546546**547547** If this frequency is 3x lower (and data received in the DMA···550550** this means VSYNC line is not connected in the hardware.551551** (check soldering pcb and pins)552552** The same behaviour of missing VSYNC can be duplicated on budget553553-** cards, by seting DD1_INIT trigger mode 7 in 3rd nibble.553553+** cards, by setting DD1_INIT trigger mode 7 in 3rd nibble.554554*/555555556556 // Setup RPS1 "program" (p35)
+1-1
drivers/net/e100.c
···12151215* the literal in the instruction before the code is loaded, the12161216* driver can change the algorithm.12171217*12181218-* INTDELAY - This loads the dead-man timer with its inital value.12181218+* INTDELAY - This loads the dead-man timer with its initial value.12191219* When this timer expires the interrupt is asserted, and the12201220* timer is reset each time a new packet is received. (see12211221* BUNDLEMAX below to set the limit on number of chained packets)
+1-1
drivers/net/e1000/e1000_hw.c
···38683868*38693869* hw - Struct containing variables accessed by shared code38703870*38713871-* Sets bit 15 of the MII Control regiser38713871+* Sets bit 15 of the MII Control register38723872******************************************************************************/38733873int32_t38743874e1000_phy_reset(struct e1000_hw *hw)
+1-1
drivers/net/sk98lin/h/skdrv2nd.h
···160160161161/*162162** Interim definition of SK_DRV_TIMER placed in this file until 163163-** common modules have boon finallized163163+** common modules have been finalized164164*/165165#define SK_DRV_TIMER 11 166166#define SK_DRV_MODERATION_TIMER 1
+2-2
drivers/net/sk98lin/skdim.c
···252252253253/*******************************************************************************254254** Function : SkDimDisplayModerationSettings255255-** Description : Displays the current settings regaring interrupt moderation255255+** Description : Displays the current settings regarding interrupt moderation256256** Programmer : Ralph Roesler257257** Last Modified: 22-mar-03258258** Returns : void (!)···510510511511/*******************************************************************************512512** Function : DisableIntMod()513513-** Description : Disbles the interrupt moderation independent of what inter-513513+** Description : Disables the interrupt moderation independent of what inter-514514** rupts are running or not515515** Programmer : Ralph Roesler516516** Last Modified: 23-mar-03
+2-2
drivers/net/wireless/ipw2200.c
···69206920}6921692169226922/*69236923-* handling the beaconing responces. if we get different QoS setting69246924-* of the network from the the associated setting adjust the QoS69236923+* handling the beaconing responses. if we get different QoS setting69246924+* off the network from the associated setting, adjust the QoS69256925* setting69266926*/69276927static int ipw_qos_association_resp(struct ipw_priv *priv,
+1-1
drivers/parisc/ccio-dma.c
···486486** This bit tells U2 to do R/M/W for partial cachelines. "Streaming"487487** data can avoid this if the mapping covers full cache lines.488488** o STOP_MOST is needed for atomicity across cachelines.489489-** Apperently only "some EISA devices" need this.489489+** Apparently only "some EISA devices" need this.490490** Using CONFIG_ISA is hack. Only the IOA with EISA under it needs491491** to use this hint iff the EISA devices needs this feature.492492** According to the U2 ERS, STOP_MOST enabled pages hurt performance.
+3-3
drivers/parisc/iosapic.c
···5050**5151** PA Firmware5252** -----------5353-** PA-RISC platforms have two fundementally different types of firmware.5353+** PA-RISC platforms have two fundamentally different types of firmware.5454** For PCI devices, "Legacy" PDC initializes the "INTERRUPT_LINE" register5555** and BARs similar to a traditional PC BIOS.5656** The newer "PAT" firmware supports PDC calls which return tables.5757-** PAT firmware only initializes PCI Console and Boot interface.5858-** With these tables, the OS can progam all other PCI devices.5757+** PAT firmware only initializes the PCI Console and Boot interface.5858+** With these tables, the OS can program all other PCI devices.5959**6060** One such PAT PDC call returns the "Interrupt Routing Table" (IRT).6161** The IRT maps each PCI slot's INTA-D "output" line to an I/O SAPIC
+1-1
drivers/pci/hotplug/ibmphp_hpc.c
···531531*532532* Action: issue a READ command to HPC533533*534534-* Input: pslot - can not be NULL for READ_ALLSTAT534534+* Input: pslot - cannot be NULL for READ_ALLSTAT535535* pstatus - can be NULL for READ_ALLSTAT536536*537537* Return 0 or error codes
+1-1
drivers/s390/net/claw.h
···2929#define CLAW_COMPLETE 0xff /* flag to indicate i/o completed */30303131/*-----------------------------------------------------*3232-* CLAW control comand code *3232+* CLAW control command code *3333*------------------------------------------------------*/34343535#define SYSTEM_VALIDATE_REQUEST 0x01 /* System Validate request */
+1-1
drivers/scsi/aic94xx/aic94xx_reg_def.h
···20002000 * The host accesses this scratch in a different manner from the20012001 * central sequencer. The sequencer has to use CSEQ registers CSCRPAGE20022002 * and CMnSCRPAGE to access the scratch memory. A flat mapping of the20032003- * scratch memory is avaliable for software convenience and to prevent20032003+ * scratch memory is available for software convenience and to prevent20042004 * corruption while the sequencer is running. This memory is mapped20052005 * onto addresses 800h - BFFh, total of 400h bytes.20062006 *
···185185** power of 2 cache line size.186186** Enhanced in linux-2.3.44 to provide a memory pool 187187** per pcidev to support dynamic dma mapping. (I would 188188-** have preferred a real bus astraction, btw).188188+** have preferred a real bus abstraction, btw).189189**190190**==========================================================191191*/···14381438** The first four bytes (scr_st[4]) are used inside the script by 14391439** "COPY" commands.14401440** Because source and destination must have the same alignment14411441-** in a DWORD, the fields HAVE to be at the choosen offsets.14411441+** in a DWORD, the fields HAVE to be at the chosen offsets.14421442** xerr_st 0 (0x34) scratcha14431443** sync_st 1 (0x05) sxfer14441444** wide_st 3 (0x03) scntl3···14981498** the DSA (data structure address) register points14991499** to this substructure of the ccb.15001500** This substructure contains the header with15011501-** the script-processor-changable data and15011501+** the script-processor-changeable data and15021502** data blocks for the indirect move commands.15031503**15041504**----------------------------------------------------------···5107510751085108/*51095109** This CCB has been skipped by the NCR.51105110-** Queue it in the correponding unit queue.51105110+** Queue it in the corresponding unit queue.51115111*/51125112static void ncr_ccb_skipped(struct ncb *np, struct ccb *cp)51135113{···58965896**58975897** In normal cases, interrupt conditions occur one at a 58985898** time. The ncr is able to stack in some extra registers 58995899-** other interrupts that will occurs after the first one.59005900-** But severall interrupts may occur at the same time.58995899+** other interrupts that will occur after the first one.59005900+** But, several interrupts may occur at the same time.59015901**59025902** We probably should only try to deal with the normal 59035903** case, but it seems that multiple interrupts occur in ···67966796** The host status field is set to HS_NEGOTIATE to mark this67976797** situation.67986798**67996799-** If the target doesn't answer this message immidiately67996799+** If the target doesn't answer this message immediately68006800** (as required by the standard), the SIR_NEGO_FAIL interrupt68016801** will be raised eventually.68026802** The handler removes the HS_NEGOTIATE status, and sets the
+3-3
drivers/scsi/ncr53c8xx.h
···218218** Same as option 1, but also deal with 219219** misconfigured interrupts.220220**221221-** - Edge triggerred instead of level sensitive.221221+** - Edge triggered instead of level sensitive.222222** - No interrupt line connected.223223** - IRQ number misconfigured.224224** ···549549550550/*551551** Initial setup.552552-** Can be overriden at startup by a command line.552552+** Can be overridden at startup by a command line.553553*/554554#define SCSI_NCR_DRIVER_SETUP \555555{ \···10931093**-----------------------------------------------------------10941094** On 810A, 860, 825A, 875, 895 and 896 chips the content 10951095** of SFBR register can be used as data (SCR_SFBR_DATA).10961096-** The 896 has additionnal IO registers starting at 10961096+** The 896 has additional IO registers starting at 10971097** offset 0x80. Bit 7 of register offset is stored in 10981098** bit 7 of the SCRIPTS instruction first DWORD.10991099**-----------------------------------------------------------
+3-3
drivers/usb/host/u132-hcd.c
···211211int usb_ftdi_elan_write_pcimem(struct platform_device *pdev, u8 addressofs,212212 u8 width, u32 data);213213/*214214-* these can not be inlines because we need the structure offset!!214214+* these cannot be inlines because we need the structure offset!!215215* Does anyone have a better way?????216216*/217217#define u132_read_pcimem(u132, member, data) \···30453045* This function may be called by the USB core whilst the "usb_all_devices_rwsem"30463046* is held for writing, thus this module must not call usb_remove_hcd()30473047* synchronously - but instead should immediately stop activity to the30483048-* device and ansynchronously call usb_remove_hcd()30483048+* device and asynchronously call usb_remove_hcd()30493049*/30503050static int __devexit u132_remove(struct platform_device *pdev)30513051{···32413241#define u132_resume NULL32423242#endif32433243/*32443244-* this driver is loaded explicitely by ftdi_u13232443244+* this driver is loaded explicitly by ftdi_u13232453245*32463246* the platform_driver struct is static because it is per type of module32473247*/
+1-1
drivers/usb/misc/usb_u132.h
···5252* the kernel to load the "u132-hcd" module.5353*5454* The "ftdi-u132" module provides the interface to the inserted5555-* PC card and the "u132-hcd" module uses the API to send and recieve5555+* PC card and the "u132-hcd" module uses the API to send and receive5656* data. The API features call-backs, so that part of the "u132-hcd"5757* module code will run in the context of one of the kernel threads5858* of the "ftdi-u132" module.
+1-1
drivers/usb/serial/digi_acceleport.c
···157157* to TASK_RUNNING will be lost and write_chan's subsequent call to158158* schedule() will never return (unless it catches a signal).159159* This race condition occurs because write_bulk_callback() (and thus160160-* the wakeup) are called asynchonously from an interrupt, rather than160160+* the wakeup) are called asynchronously from an interrupt, rather than161161* from the scheduler. We can avoid the race by calling the wakeup162162* from the scheduler queue and that's our fix: Now, at the end of163163* write_bulk_callback() we queue up a wakeup call on the scheduler
+3-3
fs/reiserfs/journal.c
···14641464 }1465146514661466 /* if someone has this block in a newer transaction, just make14671467- ** sure they are commited, and don't try writing it to disk14671467+ ** sure they are committed, and don't try writing it to disk14681468 */14691469 if (pjl) {14701470 if (atomic_read(&pjl->j_commit_left))···3384338433853385/*33863386** for any cnode in a journal list, it can only be dirtied of all the33873387-** transactions that include it are commited to disk.33873387+** transactions that include it are committed to disk.33883388** this checks through each transaction, and returns 1 if you are allowed to dirty,33893389** and 0 if you aren't33903390**···34263426}3427342734283428/* syncs the commit blocks, but does not force the real buffers to disk34293429-** will wait until the current transaction is done/commited before returning 34293429+** will wait until the current transaction is done/committed before returning 34303430*/34313431int journal_end_sync(struct reiserfs_transaction_handle *th,34323432 struct super_block *p_s_sb, unsigned long nblocks)
+1-1
include/asm-m68knommu/mcfmbus.h
···3737#define MCFMBUS_MFDR_MBC(a) ((a)&0x3F) /*M-Bus Clock*/38383939/*4040-* Define bit flags in Controll Register4040+* Define bit flags in Control Register4141*/42424343#define MCFMBUS_MBCR_MEN (0x80) /* M-Bus Enable */
+3-3
include/asm-parisc/dma.h
···17171818/*1919** DMA_CHUNK_SIZE is used by the SCSI mid-layer to break up2020-** (or rather not merge) DMA's into managable chunks.2020+** (or rather not merge) DMAs into manageable chunks.2121** On parisc, this is more of the software/tuning constraint2222-** rather than the HW. I/O MMU allocation alogorithms can be2323-** faster with smaller size is (to some degree).2222+** rather than the HW. I/O MMU allocation algorithms can be2323+** faster with smaller sizes (to some degree).2424*/2525#define DMA_CHUNK_SIZE (BITS_PER_LONG*PAGE_SIZE)2626
+1-1
include/asm-parisc/pci.h
···149149/*150150** Most PCI devices (eg Tulip, NCR720) also export the same registers151151** to both MMIO and I/O port space. Due to poor performance of I/O Port152152-** access under HP PCI bus adapters, strongly reccomend use of MMIO152152+** access under HP PCI bus adapters, strongly recommend the use of MMIO153153** address space.154154**155155** While I'm at it more PA programming notes:
+1-1
include/asm-parisc/ropes.h
···1414#endif15151616/*1717-** The number of pdir entries to "free" before issueing1717+** The number of pdir entries to "free" before issuing1818** a read to PCOM register to flush out PCOM writes.1919** Interacts with allocation granularity (ie 4 or 8 entries2020** allocated and free'd/purged at a time might make this
+1-1
include/linux/ixjuser.h
···315315* structures. If the freq0 variable is non-zero, the tone table contents316316* for the tone_index are updated to the frequencies and gains defined. It317317* should be noted that DTMF tones cannot be reassigned, so if DTMF tone318318-* table indexs are used in a cadence the frequency and gain variables will318318+* table indexes are used in a cadence the frequency and gain variables will319319* be ignored.320320*321321* If the array elements contain frequency parameters the driver will
+1-1
include/linux/reiserfs_fs_sb.h
···429429/* -o hash={tea, rupasov, r5, detect} is meant for properly mounting 430430** reiserfs disks from 3.5.19 or earlier. 99% of the time, this option431431** is not required. If the normal autodection code can't determine which432432-** hash to use (because both hases had the same value for a file)432432+** hash to use (because both hashes had the same value for a file)433433** use this option to force a specific hash. It won't allow you to override434434** the existing hash on the FS, so if you have a tea hash disk, and mount435435** with -o hash=rupasov, the mount will fail.
+2-2
net/wanrouter/af_wanpipe.c
···1313* Due Credit:1414* Wanpipe socket layer is based on Packet and 1515* the X25 socket layers. The above sockets were 1616-* used for the specific use of Sangoma Technoloiges 1616+* used for the specific use of Sangoma Technologies 1717* API programs. 1818* Packet socket Authors: Ross Biro, Fred N. van Kempen and 1919* Alan Cox.···2323* Apr 25, 2000 Nenad Corbic o Added the ability to send zero length packets.2424* Mar 13, 2000 Nenad Corbic o Added a tx buffer check via ioctl call.2525* Mar 06, 2000 Nenad Corbic o Fixed the corrupt sock lcn problem.2626-* Server and client applicaton can run2626+* Server and client application can run2727* simultaneously without conflicts.2828* Feb 29, 2000 Nenad Corbic o Added support for PVC protocols, such as2929* CHDLC, Frame Relay and HDLC API.
+1-1
net/wanrouter/wanmain.c
···33*44* This module is completely hardware-independent and provides55* the following common services for the WAN Link Drivers:66-* o WAN device managenment (registering, unregistering)66+* o WAN device management (registering, unregistering)77* o Network interface management88* o Physical connection management (dial-up, incoming calls)99* o Logical connection management (switched virtual circuits)
+3-3
sound/oss/cs46xx.c
···779779 rate = 48000 / 9;780780781781 /*782782- * We can not capture at at rate greater than the Input Rate (48000).782782+ * We cannot capture at at rate greater than the Input Rate (48000).783783 * Return an error if an attempt is made to stray outside that limit.784784 */785785 if (rate > 48000)···47544754 mdelay(5 * cs_laptop_wait); /* Shouldnt be needed ?? */4755475547564756/*47574757-* If we are resuming under 2.2.x then we can not schedule a timeout.47584758-* so, just spin the CPU.47574757+* If we are resuming under 2.2.x then we cannot schedule a timeout,47584758+* so just spin the CPU.47594759*/47604760 if (card->pm.flags & CS46XX_PM_IDLE) {47614761 /*