  We study the quantization of the 6d Seiberg-Witten curve for D-type minimal
conformal matter theories compactified on a two-torus. The quantized 6d curve
turns out to be a difference equation established via introducing codimension
two and four surface defects. We show that, in the Nekrasov-Shatashvili limit,
the 6d partition function with insertions of codimension two and four defects
serve as the eigenfunction and eigenvalues of the difference equation,
respectively. We further identify the quantum curve of D-type minimal conformal
matters with an elliptic Garnier system recently studied in the integrability
community. At last, as a concrete consequence of our elliptic quantum curve, we
study its RG flows to obtain various quantum curves of 5d ${\rm Sp}(N)+N_f
\mathsf{F},N_f\leq 2N+5$ theories.
