|
|
1.1 ! root 1: /* ! 2: * null routines; used by ANONE and others ! 3: */ ! 4: ! 5: #include "mkconf.h" ! 6: ! 7: /* ! 8: * check syntax just after reading conf ! 9: * return 0 if good, 1 if bad ! 10: */ ! 11: int ! 12: nosyntax(dp) ! 13: Dev *dp; ! 14: { ! 15: return (0); ! 16: } ! 17: ! 18: /* ! 19: * do any fixups ! 20: * everything in dp is set, even parent ! 21: */ ! 22: ! 23: int ! 24: nofixup(dp) ! 25: Dev *dp; ! 26: { ! 27: } ! 28: ! 29: /* ! 30: * print the address data, count, data structures ! 31: * called once per Mdev; expected to loop along dp->next ! 32: * until a different type of dev ! 33: */ ! 34: ! 35: int ! 36: noputaddr(fd, dp) ! 37: int fd; ! 38: register Dev *dp; ! 39: { ! 40: register int count; ! 41: register Mdev *mp; ! 42: ! 43: count = 0; ! 44: for (mp = dp->mdev; dp && dp->mdev == mp; dp = dp->next) ! 45: count = dp->id; ! 46: count++; ! 47: putstrs(fd, mp, count*mp->rept); ! 48: } ! 49: ! 50: ! 51: /* ! 52: * print vector extras, e.g. interface routine ! 53: * called once per dp ! 54: */ ! 55: ! 56: int ! 57: noputvec(fd, dp) ! 58: int fd; ! 59: Dev *dp; ! 60: { ! 61: } ! 62: ! 63: /* ! 64: * common code for driver routines ! 65: */ ! 66: ! 67: putstrs(fd, mp, count) ! 68: int fd; ! 69: register Mdev *mp; ! 70: int count; ! 71: { ! 72: register int i; ! 73: ! 74: for (i = 0; i < NSTR && mp->strs[i]; i++) ! 75: fprint(fd, "%s[%d];\n", mp->strs[i], count); ! 76: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.