.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SND_MPU401_UART_NEW" "" "06 October 2005" "" "" .SH NAME snd_mpu401_uart_new \- create an MPU401-UART instance .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int snd_mpu401_uart_new (snd_card_t * \fIcard\fB, int \fIdevice\fB, unsigned short \fIhardware\fB, unsigned long \fIport\fB, int \fIintegrated\fB, int \fIirq\fB, int \fIirq_flags\fB, snd_rawmidi_t ** \fIrrawmidi\fB); \fR .SH "ARGUMENTS" .TP \fB\fIcard\fB\fR the card instance .TP \fB\fIdevice\fB\fR the device index, zero-based .TP \fB\fIhardware\fB\fR the hardware type, MPU401_HW_XXXX .TP \fB\fIport\fB\fR the base address of MPU401 port .TP \fB\fIintegrated\fB\fR non-zero if the port was already reserved by the chip .TP \fB\fIirq\fB\fR the irq number, -1 if no interrupt for mpu .TP \fB\fIirq_flags\fB\fR the irq request flags (SA_XXX), 0 if irq was already reserved. .TP \fB\fIrrawmidi\fB\fR the pointer to store the new rawmidi instance .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 mpu401_t magic-cast). .PP Returns zero if successful, or a negative error code.