1. Disconnect the negative battery cable.
2. Remove the front door trim or rear door trim.
3. Remove the screws, then the power window switch.

4. Install in the reverse order of removal.
Door glass position change procedure
Power window main switch inspectionMazda 6 Service Manual: Foreword
Outline
There are two on-board diagnostic functions: Operation mode, which
inspects for and indicates correct operation of the input signals to the
control module, and condition detection mode, which indicates troubles in
the system.
The two functions can be done using either of the f ...
Mazda 6 Service Manual: Curtain Air Bags
The curtain air bags are mounted in the front and rear window pillars, and the
roof edge along both sides.
When the air bag crash sensors detect a side impact of greater than moderate
force, the curtain air bag inflates quickly and helps to reduce injury mainly to
the rear outboard passenger' ...