[Prism54-devel] Suggested Firmware version patch
Margit Schubert-While
margitsw at t-online.de
Thu Jul 29 18:34:47 UTC 2004
Here is suggested patch to print firmware version :
One thing that argues against this is that if we get the dreaded
"mgt timeout", we get it here !
Margit
--- oid_mgt.c 2004-07-22 09:53:23.000000000 +0200
+++ oid_mgt2.c 2004-07-26 09:37:52.000000000 +0200
@@ -219,7 +219,7 @@
OID_UNKNOWN(OID_INL_MEMORY, 0xFF020002),
OID_U32_C(OID_INL_MODE, 0xFF020003),
OID_UNKNOWN(OID_INL_COMPONENT_NR, 0xFF020004),
- OID_UNKNOWN(OID_INL_VERSION, 0xFF020005),
+ OID_STRUCT(OID_INL_VERSION, 0xFF020005, u8[8], OID_TYPE_RAW),
OID_UNKNOWN(OID_INL_INTERFACE_ID, 0xFF020006),
OID_UNKNOWN(OID_INL_COMPONENT_ID, 0xFF020007),
OID_U32_C(OID_INL_CONFIG, 0xFF020008),
--- islpci_dev.c 2004-07-27 20:13:44.000000000 +0200
+++ islpci_dev2.c 2004-07-29 18:58:11.000000000 +0200
@@ -366,6 +366,7 @@
{
u32 rc;
islpci_private *priv = netdev_priv(ndev);
+ union oid_res_t r;
printk(KERN_DEBUG "%s: islpci_open()\n", ndev->name);
@@ -376,6 +377,11 @@
return rc; /* Returns informative message */
}
+ mgt_get_request(priv, OID_INL_VERSION, 0, NULL, &r);
+ if ( r.ptr ) {
+ printk(KERN_DEBUG "Firmware version: %.8s\n", (char *)r.ptr);
+ kfree(r.ptr);
+ }
netif_start_queue(ndev);
/* netif_mark_up( ndev ); */
More information about the Prism54-devel
mailing list