"Invalid interrupt polarity/trigger in resource list, %X\n", temp8)); 
"Invalid interrupt polarity/trigger in resource list, %X\n", temp8)); 
acpi_rs_irq_resource (	u8                              *byte_stream_buffer,	acpi_size                       *bytes_consumed,	u8                              **output_buffer,	acpi_size                       *structure_size){	u8                              *buffer = byte_stream_buffer;	struct acpi_resource            *output_struct = (void *) *output_buffer;	u16                             temp16 = 0;	u8                              temp8 = 0;	u8                              index;	u8                              i;	acpi_size                       struct_size = ACPI_SIZEOF_RESOURCE (struct acpi_resource_irq);	ACPI_FUNCTION_TRACE ("rs_irq_resource");	/*	 * The number of bytes consumed are contained in the descriptor	 *  (Bits:0-1)	 */	temp8 = *buffer;	*bytes_consumed = (temp8 & 0x03) + 1;	output_struct->id = ACPI_RSTYPE_IRQ;	/*	 * Point to the 16-bits of Bytes 1 and 2	 */	buffer += 1;	ACPI_MOVE_16_TO_16 (&temp16, buffer);	output_struct->data.irq.number_of_interrupts = 0;	/* Decode the IRQ bits */	for (i = 0, index = 0; index < 16; index++) {		if ((temp16 >> index) & 0x01) {			output_struct->data.irq.interrupts[i] = index;			i++;		}	}	/* Zero interrupts is valid */	output_struct->data.irq.number_of_interrupts = i;	if (i > 0) {		/*		 * Calculate the structure size based upon the number of interrupts		 */		struct_size += ((acpi_size) i - 1) * 4;	}	/*	 * Point to Byte 3 if it is used	 */	if (4 == *bytes_consumed) {		buffer += 2;		temp8 = *buffer;		/*		 * Check for HE, LL interrupts		 */		switch (temp8 & 0x09) {		case 0x01: /* HE */			output_struct->data.irq.edge_level = ACPI_EDGE_SENSITIVE;			output_struct->data.irq.active_high_low = ACPI_ACTIVE_HIGH;			break;		case 0x08: /* LL */			output_struct->data.irq.edge_level = ACPI_LEVEL_SENSITIVE;			output_struct->data.irq.active_high_low = ACPI_ACTIVE_LOW;			break;		default:			/*			 * Only _LL and _HE polarity/trigger interrupts			 * are allowed (ACPI spec, section "IRQ Format")			 * so 0x00 and 0x09 are illegal.			 */			ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,				"Invalid interrupt polarity/trigger in resource list, %X\n", temp8));			return_ACPI_STATUS (AE_BAD_DATA);		}		/*		 * Check for sharable		 */		output_struct->data.irq.shared_exclusive = (temp8 >> 3) & 0x01;	}	else {		/*		 * Assume Edge Sensitive, Active High, Non-Sharable		 * per ACPI Specification		 */		output_struct->data.irq.edge_level = ACPI_EDGE_SENSITIVE;		output_struct->data.irq.active_high_low = ACPI_ACTIVE_HIGH;		output_struct->data.irq.shared_exclusive = ACPI_EXCLUSIVE;	}	/*	 * Set the Length parameter	 */	output_struct->length = (u32) struct_size;	/*	 * Return the final size of the structure	 */	*structure_size = struct_size;	return_ACPI_STATUS (AE_OK);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/44f6c01242da4e162f28d8e1216a8c7a91174605/rsirq.c/clean/drivers/acpi/resources/rsirq.c