| plan 9 kernel history: overview | file list | diff list |
1995/0920/pc/main.c (diff list | history)
| 1995/0803/sys/src/9/pc/main.c:728,734 – 1995/0920/sys/src/9/pc/main.c:728,734 (short | long | prev | next) | ||
| 1993/0915 | int isaconfig(char *class, int ctlrno, ISAConf *isa) { | |
| 1995/0920 | char cc[NAMELEN], *p, *q, *r; | |
| 1993/0915 | int n; sprint(cc, "%s%d", class, ctlrno); | |
| 1995/0803/sys/src/9/pc/main.c:735,740 – 1995/0920/sys/src/9/pc/main.c:735,741 | ||
| 1993/0915 | for(n = 0; n < nconf; n++){ if(strncmp(confname[n], cc, NAMELEN)) continue; | |
| 1995/0920 | isa->nopt = 0; | |
| 1993/0915 | p = confval[n]; while(*p){ while(*p == ' ' || *p == '\t') | |
| 1995/0803/sys/src/9/pc/main.c:762,769 – 1995/0920/sys/src/9/pc/main.c:763,782 | ||
| 1993/0915 | isa->size = strtoul(p+5, &p, 0); | |
| 1994/0823 | else if(strncmp(p, "freq=", 5) == 0) isa->freq = strtoul(p+5, &p, 0); | |
| 1993/0915 |
| |
| 1995/0920 | else if(strncmp(p, "ea=", 3) == 0){ if(parseether(isa->ea, p+3) == -1) memset(isa->ea, 0, 6); } else if(isa->nopt < NISAOPT){ r = isa->opt[isa->nopt]; while(*p && *p != ' ' && *p != '\t'){ *r++ = *p++; if(r-isa->opt[isa->nopt] >= ISAOPTLEN-1) break; } *r = '\0'; isa->nopt++; } | |
| 1993/0915 | while(*p && *p != ' ' && *p != '\t') p++; } | |