Re: PCSP driver?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 04 February 2004 18:39, prasanna wakhare wrote:
> pcsp_beep(int count, int cycles)
> {
>        /* enable counter 2 */
>        outb_p(inb_p(0x61)|3, 0x61);
>        /* set command for counter 2, 2 byte write */
>        outb_p(0xB6, 0x43);
>        /* select desired HZ */
>        outb_p(count & 0xff, 0x42);
>        outb((count >> 8) & 0xff, 0x42);
>
>        while (cycles--);
>
>        /* disable counter 2 */
>        outb(inb_p(0x61)&0xFC, 0x
>
> this is patch of patch of PCSP it's just produces beep
> of count HZ,
> sorry but a simple  questions is why this while
> (cycles --) used

I think the parameter, "cycles" is used as a delay counter.
The beep will be there till the loop exits(while (cycles--))....


:-)
Regards,
Shine Mohamed


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux