Skip to contentSkip to conversation

serial.c: get_serial_port and get_number_of_serial_ports API added.

PATCH Superseded Michael Zaidman 1 participant 1 message Apr 1, 2010

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 serial.c: get_serial_port and get_number_of_serial_ports API added.

---
 drivers/serial/serial.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
drivers/serial/serial.c +10 -0
index 8d78983..c123803 100644
@@ -340,3 +340,13 @@ DECLARE_ESERIAL_FUNCTIONS(4);
 struct serial_device eserial4_device =
 	INIT_ESERIAL_STRUCTURE(4,"eserial3","EUART4");
 #endif /* CONFIG_SERIAL_MULTI */
+
+NS16550_t get_serial_port(int index)
+{
+	return serial_ports[index];
+}
+
+int get_number_of_serial_ports(void)
+{
+	return MAX_SER_PORTS;
+}
Signature · 1 line
1.6.3.3