In accordance with an aspect of the present invention, a corresponding
list of muxes is maintained for each combination of a peripheral and a
mux option. The list is then retrieved to program the required muxes to
connect the communication paths from a peripheral on the corresponding
mux option, based on which the list is retrieved. In an embodiment, the
information is maintained in the form of a table, with each entry storing
the data corresponding to a mux and mux option. The entries are linked by
appropriate pointers to form the linked list.