rocker: add irq_status setter

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: implement link up/down propagation

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: implement switch ID propagation

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: implement bogus registers reads

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: get rid of r->fp_ports and always use fp_port->enabled value

No need to duplicate the enabled info. Just leave it in the port struct.
Adjust the relevatn piece of red_guide as well and add debug
enabled/disabled print.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: fix order of PORT_PHYS_ENABLE read/write to match _hw.h

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: remove dead world and make l2l3 default

There is no meaning for dead world. Also, mode bitarray does not allow
to expose "mode dead" to driver. So just make l2l3 default one.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: allow to get which world a port is in

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: implement rd/wr of PORT_PHYS_MODE

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: implement pci reset

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
rocker: introduce control register and implement sw reset

le/be switching is removed for now. Can be reintroduced as a bits of
control register.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
add SWITCH_ID to reg_guide