man7/lofi.7

#

    lofi(7)								      lofi(7)

    Name
      lofi - LoFi audio device

    Syntax
      On OSF/1 Alpha,

      controller	  lofi0	     at	tc0	  slot?	  vector    lofiint

    Description
      The lofi audio device	driver provides	an ioctl for mapping the device	into
      user space on	behalf of the calling process. The device driver also handles
      device interrupts for	event reporting.

    Adding the lofi	Driver
      This man page	describes how to install the lofi driver on your OSF/1 Alpha
      AXP system.

    Installation Directions	From Setld Kit

      The setld kit	for the	LoFi device driver is located in

    	  <audio_root>/devices/lofi/driver/alpha.kit/output

      As root, you should use setld	to install the LFIBASE100 kit using this com-
      mand

    	  % setld -l <audio_root>/devices/lofi/driver/alpha.kit/output

      and then select the LoFi option (1). The installation	script will lead you
      through the steps to build a new kernel.  Move the new kernel	from
      /sys/HOSTNAME/vmunix to /vmunix and reboot.

      If you experience any	problems with the installation or kernel configura-
      tion,	check that the files listed in the next	section	were modified as
      described below.  You	may also need to verify	the LoFi module	ROM ID as
      compared against the table in	tc_options_data.c.  To determine the LoFi
      module ROM ID	you may	use the	Ultrix error log formatting program, "uerf
      -R", or the system console commands "show conf" and "show dev".

      Installation on OSF/1	registers the LoFi kit using the "kreg"	command.

    Installation Directions	From Sources

      The LoFi setld kit installs and  modifies several files.  The	file required
      for configuring a kernel with	the LoFi driver	are now	listed.	 If you
      experience any problems installing the setld kit, you	may install the
      driver manually using	these steps.

    Files

      /sys/conf/.product.list

      /sys/io/lofi/config.file

      /sys/io/lofi/files

      /sys/io/lofi/stanza.static

      /sys/io/lofi/lofi.c

      Driver source	file.

      /sys/include/io/lofi/lofi_reg.h

      Driver source	file.

      /sys/include/io/lofi/lofi.h

      Driver source	file.

      /sys/include/io/lofi/amd79c30a_reg.h

      Driver source	file.

    Special	Files

      Rebuild the kernel in	the usual way and reboot the new kernel.

      The device special files will	be created automatically upon rebooting.  If
      you need to create the device	special	files by hand,

      % mknod /dev/lofi0 c 4 0
      % chmod 666 /dev/lofi0

      Always be sure to compare the	major number of	the device against the index
      of the entry in the cdevsw table in the file "/sys/HOSTNAME/conf.c."	If
      they do not match, modify the	major number in	the mknod command to match
      the entry in the table.

    See Also
      doconfig(8),kreg(8),setld(8),uerf(8)

    Copyright
      Copyright 1990, 1991,	1992, 1993 Digital Equipment Corporation.

    Author
      Tom Levergood	of Digital's Cambridge Research	Laboratory.