'\" t .\" Title: snd_mpu401_uart_new .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: MIDI API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_MPU401_UART_NEW" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "MIDI API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_mpu401_uart_new \- create an MPU401\-UART instance .SH "SYNOPSIS" .HP \w'int\ snd_mpu401_uart_new('u .BI "int snd_mpu401_uart_new(struct\ snd_card\ *\ " "card" ", int\ " "device" ", unsigned\ short\ " "hardware" ", unsigned\ long\ " "port" ", unsigned\ int\ " "info_flags" ", int\ " "irq" ", struct\ snd_rawmidi\ **\ " "rrawmidi" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 the card instance .RE .PP \fIdevice\fR .RS 4 the device index, zero\-based .RE .PP \fIhardware\fR .RS 4 the hardware type, MPU401_HW_XXXX .RE .PP \fIport\fR .RS 4 the base address of MPU401 port .RE .PP \fIinfo_flags\fR .RS 4 bitflags MPU401_INFO_XXX .RE .PP \fIirq\fR .RS 4 the ISA irq number, \-1 if not to be allocated .RE .PP \fIrrawmidi\fR .RS 4 the pointer to store the new rawmidi instance .RE .SH "DESCRIPTION" .PP Creates a new MPU\-401 instance\&. .PP Note that the rawmidi instance is returned on the rrawmidi argument, not the mpu401 instance itself\&. To access to the mpu401 instance, cast from rawmidi\->private_data (with struct snd_mpu401 magic\-cast)\&. .SH "RETURN" .PP Zero if successful, or a negative error code\&. .SH "COPYRIGHT" .br