]> Zhao Yanbai Git Server - minix.git/commitdiff
Added replies to status requests from RS.
authorJorrit Herder <jnherder@minix3.org>
Fri, 21 Oct 2005 14:39:21 +0000 (14:39 +0000)
committerJorrit Herder <jnherder@minix3.org>
Fri, 21 Oct 2005 14:39:21 +0000 (14:39 +0000)
drivers/dp8390/dp8390.c
drivers/dpeth/dp.c
drivers/fxp/fxp.c
drivers/lance/lance.c
drivers/rtl8139/rtl8139.c

index e7aeff46e92517fc28554861b57a9d9a01f73e7b..ea1e0db80493f6c48d2d0fd5d466065e1196bf57 100644 (file)
@@ -192,6 +192,7 @@ int main(int argc, char *argv[])
 
                switch (m.m_type)
                {
+               case DEV_PING:  notify(m.m_source);             continue;
                case DL_WRITE:  do_vwrite(&m, FALSE, FALSE);    break;
                case DL_WRITEV: do_vwrite(&m, FALSE, TRUE);     break;
                case DL_READ:   do_vread(&m, FALSE);            break;
index e00212c454b38908a945c9270505752c958333be..28e2a3cbcc49bbd83dea06e1731e25827745b1da 100644 (file)
@@ -566,6 +566,9 @@ PUBLIC int main(int argc, char **argv)
        DEBUG(printf("eth: got message %d, ", m.m_type));
 
        switch (m.m_type) {
+           case DEV_PING:      /* Status request from RS */
+               notify(m.m_source);
+               continue;
            case DL_WRITE:      /* Write message to device */
                do_vwrite(&m, FALSE);
                break;
index cea26046d14a6b15aae9227607c71495a531dc06..f9828b43c7b2f4e5ade6f258efcaff0a5ca47530 100644 (file)
@@ -297,6 +297,7 @@ int main(int argc, char *argv[])
 
                switch (m.m_type)
                {
+               case DEV_PING:  notify(m.m_source);             continue;
                case DL_WRITEV: fxp_writev(&m, FALSE, TRUE);    break;
                case DL_WRITE:  fxp_writev(&m, FALSE, FALSE);   break;
 #if 0
index 69ab6dd0831373e8f43ec960b20ae831fcee86ba..ec483f6e1969951460d8d90bab83207169f84e60 100644 (file)
@@ -345,6 +345,7 @@ void main( int argc, char **argv )
 /*printf( "." );*/
 
       switch (m.m_type){
+      case DEV_PING:   notify(m.m_source);             continue;
       case DL_WRITE:   do_vwrite(&m, FALSE, FALSE);    break;
       case DL_WRITEV:  do_vwrite(&m, FALSE, TRUE);     break;
       case DL_READ:    do_vread(&m, FALSE);            break;
index 7863fb2605021e40518fe29796de57ededad0a31..4faaf4a39c15aefe648e51d2540fb10cd1b6b0f0 100755 (executable)
@@ -315,6 +315,7 @@ int main(int argc, char *argv[])
 
                switch (m.m_type)
                {
+               case DEV_PING: notify(m.m_source);              continue;
                case DL_WRITEV: rl_writev(&m, FALSE, TRUE);     break;
                case DL_WRITE:  rl_writev(&m, FALSE, FALSE);    break;
 #if 0