How to enumerate keyboard and mouse

Can u please tell me how to enumerate keyboards and mouse ?

For starting a serial keyboard I run the following command in my
configuration file :

requres(devi-hirun,kbd fd -d/dev/kbd)

But it can’t run the driver for ps2 keyboard.So the command that i m
after device() should be general to run the appropriate driver
corresponding to the keyboard attached to the pc.

I require the same thing for mouse also.

Thanking u