summaryrefslogtreecommitdiff
path: root/device
AgeCommit message (Collapse)Author
2013-12-09i386/i386at/com.c: fix assignment from incompatible pointer typeMarin Ramesa
* device/tty.h (tty): Modify so that correct argument list and return type is listed.
2013-12-09Cleanup of the prototypesMarin Ramesa
* device/cirbuf.h (nqdb): Remove prototype without definition. * device/conf.h (dev_set_indirect): Likewise. * kern/boot_script.h (boot_script_read_file): Likewise. * kern/eventcount.h (evc_notify_abort): Remove duplicate prototype. * kern/thread.h (thread_set_own_priority): Likewise. * kern/thread_swap.h (thread_swapout): Remove prototype without definition. * kern/timer.h (softclock): Remove duplicate prototype. * vm/pmap.h (pmap_resident_count, pmap_access, pmap_phys_address, pmap_phys_to_frame): Remove prototypes without function definition. * vm/vm_page.h (vm_set_page_size): Likewise.
2013-12-08device/tty.h, chario.h: move prototypeMarin Ramesa
Now that we have device/chario.h move the chario_init() prototype from device/tty.h to device/chario.h. * device/chario.h (chario_init): Add prototype. * device/device_init.c: Include device/chario.h. * device/tty.h (chario_init): Remove prototype.
2013-12-08device/kmsg.c: use boolean instead of an intMarin Ramesa
* device/kmsg.c (kmsg_init_done): Use boolean instead of an int.
2013-12-08device/kmsg.c: use boolean instead of an intMarin Ramesa
* device/kmsg.c (kmsg_in_use): Use boolean instead of an int.
2013-12-08device/if_ether.h: remove unused variableMarin Ramesa
* device/if_ether.h (etherbroadcastaddr): Remove unused variable. * device/subrs.c (etherbroadcastaddr): Remove initialization.
2013-12-08device/dev_lookup.c: remove unused lockMarin Ramesa
* device/dev_lookup.c (dev_port_lock): Remove unused lock.
2013-12-08device/cirbuf.c: use boolean instead of an intMarin Ramesa
* device/cirbuf.c (cb_check_enable): Use boolean instead of an int.
2013-12-08device/chario.c: use boolean instead of an intMarin Ramesa
* device/chario.c (pdma_default): Use boolean instead of an int.
2013-12-08Fix implicit declaration of functionSamuel Thibault
Thanks Marin Ramesa for the report. * device/ds_routines.h (device_deallocate): Move declaration to... * include/device/device_types.h (device_deallocate): ... here.
2013-12-08device/device_types_kernel.h: remove redeclaration of dev_port_lookup()Marin Ramesa
* device/device_types_kernel.h (dev_port_lookup): Remove prototype.
2013-12-08Add comments after endifsMarin Ramesa
* device/cons.c [MACH_KMSG]: Likewise. [CONSBUFSIZE > 0]: Likewise. * i386/i386/trap.c [MACH_KDB]: Likewise. [MACH_PV_PAGETABLES]: Likewise. * i386/i386at/kd.c [ENABLE_IMMEDIATE_CONSOLE]: Likewise. * ipc/ipc_kmsg_queue.h [_IPC_KMSG_QUEUE_H_]: Likewise. * kern/act.c [ACTWATCH]: Likewise. * kern/refcount.h [MACHINE_REFCOUNT]: Likewise. * kern/task.c [FAST_TAS]: Likewise.
2013-12-05kern/startup.c: remove forward declarationsMarin Ramesa
* Makefrag.am: Include kern/bootstrap.h. Include vm/vm_init.h. Include device/device_init.h. * device/device_init.h: New file. Add copyright. [_DEVICE_DEVICE_INIT_H_]: Add ifndef. (device_service_create): Add prototype. * i386/i386/mp_desc.h (start_other_cpus): Add prototype. * kern/bootstrap.h: New file. Add copyright. [_KERN_BOOTSTRAP_H_]: Add ifndef. (bootstrap_create): Add prototype. * kern/sched_prim.h (idle_thread, sched_thread): Add prototypes. * kern/startup.c: Include kern/bootstrap.h. Include kern/startup.h. Include vm/vm_init.h. Include vm/vm_pageout.h. Include device/device_init.h. (vm_mem_init, vm_mem_bootstrap, init_timeout, machine_init, idle_thread, vm_pageout, reaper_thread, swapin_thread, sched_thread, bootstrap_create, device_service_create, cpu_launch_first_thread, start_kernel_threads, start_other_cpus, action_thread): Remove forward declarations. [NCPUS > 1] Include machine/mp_desc.h and kern/machine.h. * kern/startup.h: Include kern/thread.h. (cpu_launch_first_thread, start_kernel_threads): Add prototypes. * vm/vm_init.h: New file. Add copyright. [_VM_VM_INIT_H_]: Add ifndef. (vm_mem_init, vm_mem_bootstrap): Add prototypes. * vm/vm_pageout.h (vm_pageout): Add prototype.
2013-12-05kern/ipc_mig.c: remove forward declarationsMarin Ramesa
* device/ds_routines.h (ds_device_write_trap, ds_device_writev_trap): Add prototypes. * kern/ipc_mig.c (ds_device_write_trap, ds_device_writev_trap): Remove forward declarations.
2013-12-05device/device_init.c: remove forward declarationsMarin Ramesa
* device/dev_lookup.c: Include device/ds_routines.h. * device/device_init.c: Include device/ds_routines.h. Include device/net_io.h. (mach_device_init, dev_lookup_init, net_io_init, device_pager_init, io_done_thread, net_thread): Remove forward declarations. * device/ds_routines.h (mach_device_init, dev_lookup_init, device_pager_init, io_done_thread): Add prototypes. * device/net_io.h (net_io_init, net_thread): Add prototypes.
2013-12-05device/net_io.c: initialize hash_entp to NULLMarin Ramesa
* device/net_io.c (hash_entp): Initialize to NET_HASH_ENTRY_NULL.
2013-11-24device: new header file chario.hMarin Ramesa
* Makefrag.am: Include device/chario.h. * device/chario.c (queue_delayed_reply, tty_output, char_open_done, char_read_done, char_write_done): Remove forward declarations. * device/chario.h: New file. Add copyright. [_DEVICE_CHARIO_H_]: Add ifndef. Include device/tty.h. (queue_delayed_reply, tty_output, char_open_done, char_read_done, char_write_done): Add prototypes.
2013-11-18Add ifndefsMarin Ramesa
Finish up with the addition of ifndefs. * device/buf.h: Add ifndef. * device/dev_master.h: Likewise. * include/device/tty_status.h: Likewise. * include/mach/version.h: Likewise. * ipc/ipc_machdep.h: Likewise.
2013-11-10device: initialize to zero offsetMarin Ramesa
Initialize addr to zero offset to quiet warnings about uninitialized deallocation. * device/chario.c (addr): Initialize to zero.
2013-11-10remove register qualifiersMarin Ramesa
* device/subrs.c: Remove register qualifiers.
2013-11-10remove register qualifiersMarin Ramesa
* device/net_io.c: Remove register qualifiers.
2013-11-10remove definitions of ETHERMTU and ETHERMINMarin Ramesa
* device/if_ether.h (ETHERMTU, ETHERMIN): Remove unused definitions.
2013-11-10remove register qualifiersMarin Ramesa
* device/blkio.c: Remove register qualifiers.
2013-09-22device: remove unused file dk_label.cMarin Ramesa
* device/dk_label.c: Remove file.
2013-09-21add comments after endifsMarin Ramesa
* device/ds_routines.c [CONFIG_PCMCIA, CONFIG_INET, LINUX_DEV, MACH_HYP]: Add comments after endifs.
2013-09-21remove lint codeMarin Ramesa
* device/ds_routines.c [lint]: Remove ifdefs and associated code.
2013-09-21remove register qualifiersMarin Ramesa
* device/ds_routines.c: Remove register qualifiers.
2013-09-21remove lint codeMarin Ramesa
* device/dev_pager.c [lint]: Remove ifdefs and associated code.
2013-09-21Coding style trivial fixesMarin Ramesa
2013-09-21remove register qualifiersMarin Ramesa
* device/dev_pager.c: Remove register qualifiers.
2013-09-16another small change in style for consistencyMarin Ramesa
* device/dev_name.c: Change in coding style.
2013-09-16use boolean_t instead of an intMarin Ramesa
Variable 'found' already receives values TRUE and FALSE, so why not make it a boolean. * device/dev_name.c: Use boolean_t instead of an int.
2013-09-16remove preprocessor commentsMarin Ramesa
The first one is a message that name lookup has been called, which I think is safe to remove, or maybe add #if DEBUG. Second one is a alternate calculation that I doubt it will ever be used, so I think it's safe to remove it. * device/dev_name.c: Remove preprocessor comments.
2013-09-16another small change in style for consistencyMarin Ramesa
* device/dev_name.c: Change in coding style.
2013-09-16small style changes for consistencyMarin Ramesa
* device/dev_name: Changes in coding style.
2013-09-16remove register qualifiersMarin Ramesa
* device/dev_name.c: Remove register qualifiers.
2013-09-15remove definition of NDEVICESMarin Ramesa
NDEVICES is never used. Judging by the position and the comments it was once used in initialization, but it's not anymore. I think it's safe to remove it. * device/dev_lookup.c (NDEVICES): Remove definition.
2013-09-15remove register qualifiersMarin Ramesa
* device/dev_lookup.c: Remove register qualifiers.
2013-09-11remove register qualifiers.Marin Ramesa
* device/cirbuf.c: Remove register qualifiers.
2013-09-11track the console init with a boolean instead of an intMarin Ramesa
A variable that keeps track if the console init has been called. It should never receive values other than 0 and 1, so constrain it's possible range of values to a boolean. * device/cons.c (cn_inited): Use boolean_t instead of an int.
2013-09-11track the console buffer usage with a boolean instead of an intMarin Ramesa
A variable that keeps track of the console buffer usage should never receive values other than 0 and 1, so constrain it's value range to boolean. Plus, it's more readable this way. * device/cons.c (consbufused): Use boolean_t instead of an int.
2013-09-11drop unused CONSMAJORMarin Ramesa
CONSMAJOR is never used. I'm guessing that in the past it was a part of some problematic code. I don't see a reason to keep it's definition. * device/cons.h (CONSMAJOR): Remove definition.
2013-09-09Remove register qualifiersMarin Ramesa
* device/chario.c: Remove register qualifiers.
2013-09-09Add const qualifiers.Marin Ramesa
* device/chario.c (tty_inq_size, tty_outq_size): Qualify constants as const.
2013-09-09Drop useless forward declarationMarin Ramesa
* device/chario.c (tty_flush): Remove forward declaration (prototype is in tty.h).
2013-09-09Drop luna88k bitsMarin Ramesa
* device/tty.h [luna88k]: Remove ifdef and include for nonexistent header files. * kern/debug.c: Remove check for luna88k.
2013-06-29Add device_pager_setup prototypeMarin Ramesa
* device/ds_routines.h (device_pager_setup): Add prototype.
2013-06-29Add [nh]to[hn][ls] prototypesMarin Ramesa
* device/net_io.h (ntohl, htonl, ntohs, htons): Add prototypes.
2013-06-29Fix int/long discrepancySamuel Thibault
* device/net_io.c (bpf_match): Make the `keys' parameter a pointer to unsigned int instead of unsigned long. (bpf_do_filter): Make `A', `B' and `mem' unsigned ints instead of unsigned longs. Also turn long casts into int casts.
2013-05-27Remove old elevator algorithm functionMiguel Figueiredo
* device/blkio.c (disksort): remove unused function