Skip to contentSkip to conversation

sparc64: expand LDC interface

PATCH David Miller 1 participant 1 message May 3, 2017

lore
Share & tools
lore
#0 lore raw

From: Jag Raman <[email protected]>
Date: Wed, 29 Mar 2017 17:51:42 -0400

Quoted 10 lines
(quoted diff) +3 -0
@@ -24,6 +24,9 @@ struct ldc_channel_config {
 	u32			mtu;
 	unsigned int		rx_irq;
 	unsigned int		tx_irq;
+	u64			rx_ino;
+	u64			tx_ino;
+	u64			dev_handle;
 	u8			mode;
 #define LDC_MODE_RAW		0x00
 #define LDC_MODE_UNRELIABLE	0x01

...

Quoted 1 line

+void ldc_enable_hv_intr(struct ldc_channel *lp)

...

Quoted 1 line

+void ldc_disable_hv_intr(struct ldc_channel *lp)

You should use enable_irq() and disable_irq() for this.

The whole idea is that the entire kernel should only operate on 32-bit abstract IRQ cookies, and not have to have any knowledge about interrupt numbering details such as INOs.